OTA updates: HTTP Server not working



  • Hi.

    I am following the example in the documentation, as well as referencing this video from Pycom:

    https://www.youtube.com/watch?v=NnUVYIedl_w

    However, when running the server, either in CMD or in Visual Studio, it produces following error if i try to enter either:

    http://127.0.0.1:8000/manifest.json?current_ver=1.0.0

    or as suggested in the video:

    localhost:8000/manifest.json

    Error:
    5540be01-a4b1-4fba-8ac0-3fc7b660fd1b-image.png

    I haven't changed a single line in the OTA.py or OTA_server.py, so what am i doing wrong?

    The directory that i am running the server from when using CMD has following structure:

    To get the errors shown i had to go into Visual Studio and run the server, where the directory is not in this structure, but i am assuming that this is not the problem since running the server using CMD is not working.

    Another question: Ultimately i would like to be able to remotely update my code on the FiPy using LTE (NB-IoT) connection instead of WiFi. What will this require of changes? Obviously i must replace the Wifi part of the code, but wondering if someone has made this work / have an example of it?


Log in to reply
 

Pycom on Twitter