Pybytes dashboard not accepting data



  • I have a WiPY 3 and it was pushing 6 virtual pins to my Pybytes dashboard for several weeks. Now only the first virtual pin gets updated. I experimented with my code and found that if I wait 3 seconds between virtual pin messages, they all make it. If I remove the 3 second pause (or drop it down to 1 second) only the first value makes it. Any ideas why this would happen? It worked fine for several weeks.
    -Jason

    def main_control():
        global  data_file_name
        sensor_read=measure.sensor_measurement()
        write_dict(sensor_read,data_file_name)
        pybytes.send_virtual_pin_value(False, 1, sensor_read['1'][1]) # send data to pybytes
        sleep_ms(3000)
        pybytes.send_virtual_pin_value(False, 2, sensor_read['1'][2])
        sleep_ms(3000)
        pybytes.send_virtual_pin_value(False, 3, sensor_read['0'][1])
        sleep_ms(3000)
        pybytes.send_virtual_pin_value(False, 4, sensor_read['0'][2])
        sleep_ms(3000)
        pybytes.send_virtual_pin_value(False, 5, sensor_read['0'][3])
        sleep_ms(3000)
        pybytes.send_virtual_pin_value(False, 6, sensor_read['0'][4])```


  • Glad you worked it out :) Ill try and get a note added to the documentation so this is more clear.



  • Never mind. I just saw in another post that the update rate has been limited to 1/sec.


 

Pycom on Twitter