BeyondRobotix / mavesp8266

ESP8266 WiFi Access Point and MAVLink Bridge
Other
182 stars 173 forks source link

Adding RSSI when in STA mode. #20

Closed dogmaphobic closed 8 years ago

dogmaphobic commented 8 years ago

When in Station mode, we have access to RSSI (local). As that's the case, I am now adding the RSSI value to the Radio Status messages sent to the GCS.

While at it, looking through the Espressif SDK, I found a function:

bool wifi_station_set_reconnect_policy(bool set)

That's supposed to tell the ESP to automatically reconnect to the AP (when in Station Mode) if it gets disconnected. I could not find what the default state is nor anywhere in the (low level) code where this is set. The function is even exposed by the upper level API:

bool ESP8266WiFiSTAClass::setAutoReconnect(bool autoReconnect)

I am now setting this to true when the ESP is started in Station mode.

mzahana commented 8 years ago

Is there a way to specify a fixed channel in STA mode?

dogmaphobic commented 8 years ago

Is there a way to specify a fixed channel in STA mode?

Not really. The channel is set by the AP. If you want a fixed channel, you would configure your AP to use the channel you want.