onNodeTimeAdjusted
callback function is crucial to guaranteeing the time SNTP time synchronization within the mesh, and if the node drops or falls out of sync it will reconnect an re-sync as follows:CalculateSyncAndLaunchTasks()
function gives an introspection into how the entire bot scheme works, in the form of asynchronous task definitions, which are added to the built-in TaskScheduler library. The scheduler model made working with painlessMesh relatively easy, and fun.precision
nextThreshold
nextThreshold
to determine how long the node must delay to re-enter the network promisc_cb
function strips the 802.11 frame down into each control field. If a discovered frame is a management frame and is a beacon (source BSSID) or a probe response (to the source BSSID), the beacon is parsed against a vector of running targets. If the targets vector contain the incoming frame, the bot enters into alert mode with the RSSI signal strength, channel, and BSSID all tracked.tar
: add a target BSSIDrem
: remove a target BSSIDAck
-> Syn-Ack
-> Fin-Ack
model for alerting the root, verifying the alert from the root, and finalizing the acknowledgement back to the root as a way to provide durability in alert mode. To make this possible,ackTimes
: The amount of acknowledgementsackSeconds
: The interval between acknowledgementsalertSeconds
: The length of time between each alertalertTimes
: The number of alertsalertTimes
alerts for a maximum of alertSeconds
ackTimes
for a maximum of ackSeconds