Added isConnected property

This commit is contained in:
Pawel Sulik 2022-06-18 00:03:28 +02:00
parent 281d5708ab
commit 41505660b4
1 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,9 @@ class Span{
void poll(); // calls pollTask() with some error checking
void processSerialCommand(const char *c); // process command 'c' (typically from readSerial, though can be called with any 'c')
boolean isConnected(){return connected;} // retrieves the WiFi connection status
boolean updateDatabase(boolean updateMDNS=true); // updates HAP Configuration Number and Loop vector; if updateMDNS=true and config number has changed, re-broadcasts MDNS 'c#' record; returns true if config number changed
boolean deleteAccessory(uint32_t aid); // deletes Accessory with matching aid; returns true if found, else returns false