Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. json
    Log in to post

    • J

      Send data with JSon
      Projects • lopy sipy pycom json • • Juan_Peroza  

      2
      0
      Votes
      2
      Posts
      1036
      Views

      J

      @juan_peroza JSON is not a protocol, it’s just a data representation. You can send whatever you want, but JSON is not very space efficient, and is usually not the best choice for data sent over a (very) low bandwidth link such as LoRa, SigFox, NB-IoT, or BLE. It’s usually better to use an optimised binary format in those cases.
    • K

      How to add more than 1 Wifi Network to pybytes_config.json ?
      Support & Troubleshooting • wifi pybytes wipy3.0 json • • klaus  

      2
      0
      Votes
      2
      Posts
      759
      Views

      dan

      Hi @klaus, Currently, you can only configure one WiFi network, and save multiple in the Pybytes console.
    • S

      Invalid json returned by urequests get
      Discussion • urequests json http get • • sprasad  

      7
      0
      Votes
      7
      Posts
      1569
      Views

      K

      @paul-thornton I got that sorted by modifying line 53 in urequests as per a suggestion I found online somewhere Paul. I could really use some help withhttps://forum.pycom.io/topic/4014/gpy-in-deep-sleep though.
    • J

      Sensor JSON Post stops after a few hours
      Expansion Board • uart json post • • jimpower  

      14
      0
      Votes
      14
      Posts
      2441
      Views

      T

      @jimpower ok, so why do you get no module found when you call urequests.post now when you didn't before. I can't see all your code, just snippets. The vaious sample bits of code are being changed. Oh I see now what the problem is, when you import urequests you are importing as requests hence the module not found error. You will need to change the sample to requests.post Also as an aside why do you execfile('/flash/Wi-Fi/Wi-Fi.py') rather than importing. This seems odd thing to do.
    • S

      Creating a JSON structure for PySense
      Expansion Board • json • • smbunn  

      10
      0
      Votes
      10
      Posts
      2462
      Views

      J

      @smbunn It's probably much easier if you use a single pack with a single format string and all the values you want to pack in there. Otherwise you'll end up with issues of incorrect offsets or lengths at some point when you'll edit formats.
    • J

      Serial to UART POST JSON
      Expansion Board • json post uart1 • • jimpower  

      5
      0
      Votes
      5
      Posts
      1237
      Views

      J

      @livius I added tmp = uart1.readall() and it works thanks again I managed to do this before your reply thanks again you are always very helpful
    • J

      HTTP Post with urequests OSError: -1
      Comments & Feedback • oserror http post json urequest.py • • jimpower  

      8
      0
      Votes
      8
      Posts
      2472
      Views

      J

      @livius Thanks for your help, the gc.collect() has worked and the loop has remained stable for a few hours now.
    • B

      [SOLVED] import json: AttributeError: 'module' object has no attribute 'VERBOSE'
      Getting Started • json • • BetterAuto  

      1
      0
      Votes
      1
      Posts
      1655
      Views

      No one has replied

    • 1 / 1