Hi,
I'm relatively new to PainlessMesh.
I already have a number of nodes that connect to a mesh called "timer" via port 5555
I have updated the above code to use the same mesh SSID, password, and port as my existing nodes, however the bridge node seems to stop doing anything once it has connected to the AP and MQTT server.
The output is as follows:
CONNECTION: stationScan(): <NETWORK>
CONNECTION: scanComplete(): Scan finished
CONNECTION: scanComplete():-- > Cleared old APs.
CONNECTION: scanComplete(): num = 13
CONNECTION: found : escrg, -35dBm
CONNECTION: Found 1 nodes
CONNECTION: connectToAP(): Best AP is 3288485881<---
CONNECTION: connectToAP(): Trying to connect, scan rate set to 4*normal
CONNECTION: Event: Station Mode Connected
CONNECTION: Event: Station Mode Got IP (IP: 192.168.xxx.247 Mask: 255.255.255.0 Gateway: 192.168.xxx.1)
CONNECTION: stationScan(): <NETWORK>
CONNECTION: scanComplete(): Scan finished
CONNECTION: scanComplete():-- > Cleared old APs.
CONNECTION: scanComplete(): num = 10
CONNECTION: found : escrg, -34dBm
CONNECTION: Found 1 nodes
CONNECTION: connectToAP(): Already connected using manual connection. Disabling scanning.
I'd then expect to see something along the same lines that I see on my other nodes:
setLogLevel: ERROR | CONNECTION | DEBUG |
CONNECTION: stationScan(): timer
CONNECTION: scanComplete(): Scan finished
CONNECTION: scanComplete():-- > Cleared old APs.
CONNECTION: scanComplete(): num = 4
CONNECTION: Found 0 nodes
CONNECTION: connectToAP(): No unknown nodes found scan rate set to normal
Along with announcements as nodes join/leave the mesh, which are then propagated over to the MQTT bridge.
Have I misunderstood how this works?
Thanks in advance for any help you can provide,
Matt