Event based programming/ Interrupts | FiPy | Network (WiFi/LTE/LoRa) disconnection
-
Hello, Hope everyone is doing well. Quick query on event-based programming/ interrupts.
As FiPy allows connecting with multiple networks (LTE, WiFi, LoRa, Sigfox, Bluetooth), is there a way to know when a particular network is disconnected.
For example, assuming a battery powered FiPy is connected to WiFi, however the power of the house is disconnected and WiFi is disconnected. Is there a way to know that FiPy sends a event/ interrupt that WiFi is disconnected? rather than running a loop always to check whether wifi is connected or not. Similarly for LTE and lora.
If so, would be grateful if examples to implement such functionality can be pointed to.
-
Hi,
I know we have this callback for LTE, but not for WiFi (Ill check if its possible!)
LoRa and SigFox do not really have any connection status, as they are not continuously connected
and for Bluetooth there is a callback as well.
You can find the relevant information in the documentation:
https://docs.pycom.io/firmwareapi/pycom/network/bluetooth/#bluetoothcallbacktriggernone-handlernone-argnone
(For LTE, im still writing about it!)Gijs
-
@Gijs Hope you are doing well. Did you got a chance to check the callback for the WiFi and is the LTE callback functionality available now?
-
Hi,
Thanks for asking, im good.
We do not have such callback for WiFi unfortunately. At the moment, it is also not on a priority list to get implemented.For LTE, it is documented to the best of my knowledge here: https://docs.pycom.io/tutorials/networks/lte/. The callback is activated when an unsolicited response is received from the modem.
Best,
Gijs -
o/ @Gijs Hope you are doing well and had a good weekend. Happy New Year too. Thank you for implementing the LTE Connectivity loss functionality. By any chance is there any update/progress on WiFi connectivity loss functionality?
Yours Sincerely,
bitvijays -
@Gijs Hope you don't mind me tagging onto this thread.
Is it planned to add more callback events for LTE, in addition to EVENT_BREAK?I don't see any other triggers listed in the documentation.
-
@goldfishalpha said in Event based programming/ Interrupts | FiPy | Network (WiFi/LTE/LoRa) disconnection:
@Gijs Hope you don't mind me tagging onto this thread.
Is it planned to add more callback events for LTE, in addition to EVENT_BREAK?I don't see any other triggers listed in the documentation.
I would love an EVENT that notifies me of an attempted connection. This would greatly enhance my ability to maintain the device from a centralized location (like a web app).
How 'bout it?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login