mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
add standalone wifi network
This commit is contained in:
@@ -29,13 +29,14 @@ Network* MeshNet::init(){
|
||||
|
||||
return this;
|
||||
}
|
||||
Network* MeshNet::connectStation(int doConnect) {
|
||||
int MeshNet::connectStation(int doConnect) {
|
||||
if(doConnect){
|
||||
Serial.println("connect station");
|
||||
mesh.stationManual(config.stationSSID, config.stationPassword);
|
||||
mesh.setHostname(config.hostname.c_str());
|
||||
return 1;
|
||||
}
|
||||
return this;
|
||||
return 0;
|
||||
}
|
||||
void MeshNet::sendTo(uint32_t target, String msg){
|
||||
mesh.sendSingle(target, msg);
|
||||
|
||||
Reference in New Issue
Block a user