mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
get OTA enabling working
This commit is contained in:
@@ -15,13 +15,14 @@ Network* MeshNet::init(){
|
||||
mesh.onChangedConnections(bind(&MeshNet::changedConnectionCallback, this));
|
||||
mesh.onNodeTimeAdjusted(bind(&MeshNet::nodeTimeAdjustedCallback, this, _1));
|
||||
|
||||
connectStation();
|
||||
connectStation(config.stationMode);
|
||||
|
||||
return this;
|
||||
}
|
||||
Network* MeshNet::connectStation() {
|
||||
if(config.stationMode){
|
||||
Serial.println("connect station");
|
||||
Network* MeshNet::connectStation(int doConnect) {
|
||||
Serial.println("connect station?");
|
||||
if(doConnect){
|
||||
Serial.println("connect station!");
|
||||
mesh.stationManual(config.stationSSID, config.stationPassword);
|
||||
mesh.setHostname(config.hostname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user