Am I misunderstanding anything with gatt structure? I ever thought that the gatt is pretty much like a socket (network), it represent an active connection. If this is true, the value gatt.connected should represent the status of the connection in such a way that if a disconnection event is seen, the gatt.connected should be set to false?!?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Am I misunderstanding anything with gatt structure? I ever thought that the gatt is pretty much like a socket (network), it represent an active connection. If this is true, the value
gatt.connected
should represent the status of the connection in such a way that if a disconnection event is seen, thegatt.connected
should be set to false?!?