Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Event based programming/ Interrupts | FiPy | Network (WiFi/LTE/LoRa) disconnection

    Scheduled Pinned Locked Moved FiPy
    7 Posts 4 Posters 131 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bitvijays
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        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

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bitvijays @Gijs
          last edited by

          @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?

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • B Offline
              bitvijays
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • G Offline
                goldfishalpha
                last edited by

                @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.

                S 1 Reply Last reply Reply Quote 1
                • S Offline
                  Sean Militello @goldfishalpha
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0

                  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
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom