immediately reconnect to mqtt server on wifi reconnect
This commit is contained in:
+4
-4
@@ -35,6 +35,10 @@ class MQTT : private concurrency::OSThread
|
||||
*/
|
||||
void onSend(const MeshPacket &mp, ChannelIndex chIndex);
|
||||
|
||||
/** Attempt to connect to server if necessary
|
||||
*/
|
||||
void reconnect();
|
||||
|
||||
protected:
|
||||
virtual int32_t runOnce();
|
||||
|
||||
@@ -43,10 +47,6 @@ class MQTT : private concurrency::OSThread
|
||||
*/
|
||||
bool wantsLink() const;
|
||||
|
||||
/** Attempt to connect to server if necessary
|
||||
*/
|
||||
void reconnect();
|
||||
|
||||
/** Tell the server what subscriptions we want (based on channels.downlink_enabled)
|
||||
*/
|
||||
void sendSubscriptions();
|
||||
|
||||
Reference in New Issue
Block a user