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

    Send data from lopy to pc via wifi

    Scheduled Pinned Locked Moved LoPy
    6 Posts 3 Posters 245 Views 3 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.
    • M Offline
      MusteDaniel
      last edited by

      Hello! I am new in lopy technologie. Can someone help me with some piece of advice about how to realize a transfer of data/file from my lopy to a pc from my network? Thank you!

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @MusteDaniel
        last edited by

        @MusteDaniel Do you mean manually, or in an automated fashion in a script?

        For manual transfers: use FTP.

        For automated transfers initiated by the LoPy, you'll need some kind of server running on your computer, and you can then use requests for instance to send/receive data (there are many many different ways of doing this, so it really depends on your specific use case).

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          MusteDaniel @jcaron
          last edited by

          @jcaron I want to send data parameters obtained from the sensors continuously to an pc/raspberry from the same network to show them into a real-time interface

          securigyS 1 Reply Last reply Reply Quote 0
          • securigyS Offline
            securigy @MusteDaniel
            last edited by

            @MusteDaniel The easiest way is:

            1. Install MQTT Broker like Mosquitto on your PC
            2. Use MicroPython MQTT examples from Pycom library on GIT on LoPy.
            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MusteDaniel @securigy
              last edited by

              @securigy Thank you! I have an issue and I don t find anything about it in documentation... in this field :" client = MQTTClient("demo", "broker.hivemq.com", port=1883)" how should I set parameters to connect to my pc and where it will be displayed my messaje... I want to send messenge to intergrate into an interface or a text document...same thing

              securigyS 1 Reply Last reply Reply Quote 0
              • securigyS Offline
                securigy @MusteDaniel
                last edited by

                @MusteDaniel Sorry, but I don't understand what you are trying to do. If you want to send data from your device to your PC
                you can:

                1. Either install MQTT Broker on your PC or send the data to an existing broker in the cloud like broker.hivemq.com or CloudMQTT.
                2. Then write the code on your PC either in C# or Python that connects to the broker (that runs either on your PC or even better in the cloud) that subscribes to topic you used to send the messages to the broker. The client code samples for your PC is widely available - just search it on stackoverflow.com
                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