====== PYCOM IoT Modules ====== PYCOM LoPy and FiPy are MC boards based on ESP32 SOC with additional communication options. Wifi and BLE are intrinsic to ESP32. FiPy additionally provides LoRa, SigFox and NB-IoT / LTE-M. LoPy has LoRa. PYCOM modules are programmable in the Python dialect MicroPython. * https://pycom.io/product/fipy/ * https://docs.pycom.io/datasheets/development/fipy * Pysense product datasheet: https://docs.pycom.io/product-info-datasheets/boards/pysense * Pysense API Reference: https://docs.pycom.io/pytrack-pysense-pyscan/apireference/pysense * Pysense main example: https://github.com/brocaar/pycom-examples/blob/master/pysense-example/main.py * PYCOM modules run on micropython: https://boneskull.com/micropython-on-esp32-part-1/ * Interrupt handling on PYCOM: https://docs.pycom.io/firmware-and-api-reference/notes#interrupt-handling * Networking, all channels: https://docs.pycom.io/firmware-and-api-reference/pycom/network * LoRa: https://docs.pycom.io/firmware-and-api-reference/pycom/network/lora * LTE: https://docs.pycom.io/firmware-and-api-reference/pycom/network/lte * Deepsleep with Pysense: https://forum.pycom.io/topic/3594/how-to-deep-sleep-with-sipy-pysense-3-7v-lipo/5 * Sending data to webserver: https://forum.pycom.io/topic/2068/sending-data-from-lopy-to-a-webserver/2 * struct - Interpret bytes as packed binary data: https://docs.python.org/3.5/library/struct.html#module-struct * Python ustruct.pack_into() Examples: https://www.programcreek.com/python/example/103661/ustruct.pack_into * Pointer: https://github.com/micropython/micropython/blob/master/tests/extmod/uctypes_le.py * Timer: https://docs.pycom.io/firmware-and-api-reference/pycom/machine/timer ** An excellent tutorial on MQTT with io.adafruit.com based on PYCOM ** * :!: https://core-electronics.com.au/tutorials/internet-of-things-with-pycom-and-adafruit-io.html ** Web Development, JSON, POST ** * Differences Between Get and Post - Web Development: https://www.youtube.com/watch?v=UObINRj2EGY {{https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LIL0iGdl11z7Jos_jpX%2F-LKN7scqKKkb6TqB3uYO%2F-LKN82sWB-YWwAUXoOTq%2Ffipy-pinout.png?600}} ===== pymakr Plugin for VS Code ===== ==== Gloabel Settings for pymakr ===== https://docs.pycom.io/pymakr/settings The ''pymakr.json'' file stores the global settings (not individual project settings) under \\ ''C:\Users\\AppData\Roaming\Code\User'' === Serial Port Connection for pymakr === { "address": "COM25", "username": "micro", "password": "python", "sync_folder": "", "open_on_start": true, "safe_boot_on_upload": false, "sync_file_types": "py,txt,log,json,xml,html,js,css,mpy", "ctrl_c_on_connect": false, "sync_all_file_types": false, "auto_connect": false } === Wifi Connection for pymakr === { "address": "192.168.4.1", "username": "micro", "password": "python", "sync_folder": "", "open_on_start": true, "safe_boot_on_upload": false, "sync_file_types": "py,txt,log,json,xml,html,js,css,mpy", "ctrl_c_on_connect": false, "sync_all_file_types": false, "auto_connect": false }