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

    blynk on wipy

    Scheduled Pinned Locked Moved WiPy 2&3
    5 Posts 3 Posters 1.8k 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.
    • J Offline
      jose1711
      last edited by

      i've tried 05_terminal.py example for Blynk and i get this

      >>> execfile('05_terminal.py')
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "05_terminal.py", line 21, in <module>
      MemoryError: memory allocation failed, allocating 136 bytes
      

      any idea? is anyone able to run blynk on wipy 2.0 with the latest firmware? thank you, j

      1 Reply Last reply Reply Quote 0
      • R Offline
        Roberto
        last edited by

        Hello @jose1711
        The Blynk library only supports the WiPy 1.0. There are several incompatibilities that need to be adapted first in the library like the pin names for example.
        I would recommend you to use the Pymate library instead. To get it on your device just download the Pymate App from the App Store or Google Play, follow the setup and thats it, you will get the same functionality as you get with the Blynk App.
        Both libraries work in a similar way, but Pymate uses Pycom servers and MQTT to share the data.

        Best,
        Roberto

        1 Reply Last reply Reply Quote 0
        • C Offline
          crankshaft
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • R Offline
            Roberto
            last edited by Roberto

            Hello @crankshaft,

            Pymate only requires to connect to your device in AP mode for the setup stage. After the setup, the device connects itself to your router to get internet connection on every boot.
            You can still connect from your computer using serial port (just connect your device to your computer using usb/serial and use your preferred serial application). (Some modification might be required to the library if you want to use both the Pymate library and the REPL console at the same time)
            You can also connect to the device using FTP and modify both boot.py and main.py files to load any program that you require or even perform modifications to the Pymate library.

            The library consists of 4 files:
            boot.py: available normally on all Pycom devices but modified to include an automatic connection to the internet on every boot
            simple.py: an MQTT library from the micro python library Github
            pymate_library.py: a set of classes and methods that allow the device to connect, authenticate and send message to the Pymate MQTT broker
            pymate_basic.py: a file that contains the configuration and main call to the pymate_library file. Here you can add your customisations as well to include any extra code that you might require.

            I will get working on an overview on how the pymate library can be changed to work side by side with your apps and the REPL console and let you know as soon as posible. For now you can test the current version from your mobile device, there is no risk on using it and if you ever want to go back to the original device settings you can always use the safe boot options described here:
            https://docs.pycom.io/pycom_esp32/pycom_esp32/tutorial/reset.html?highlight=safe boot#safe-boot

            Best,
            Roberto

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              crankshaft @Roberto
              last edited by

              @Roberto - Thanks so much for your comprehensive reply.

              Actually I figured it all out yesterday and deleted my post after I did that, but for some reason the post still exists.

              I have posted elsewhere regarding problems with high latency and error messages when using pymate together with the rgbled example: https://forum.pycom.io/topic/276/pymate-understanding-virtual-and-terminal-pins/13

              The other problem I found is that pymate only currently supports developer access and defaults to edit mode, I really need to get a real user to test it out and not allow them to edit the widgets.

              On another subject, I have tried the restore function by pulling GP28 high for > 3 < 6 seconds and it always reverts to the current release and does not restore the previous or factory defaults, not sure why.

              Thanks again !

              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