No description
in order to transfer telemetry to the server a command must be sent: cmd: telemetry wlan_ssid: ssid for wlan wlan_password (optional): wlan password telemetry_server: server base URL where to send telemetry data currently, we send the MAC address of the microcontroller as well as the installed version, read from the version file |
||
|---|---|---|
| docker | ||
| server/flask | ||
| cmd_reset.sh | ||
| cmd_rtc.sh | ||
| cmd_uota.sh | ||
| cmd_upload.sh | ||
| create_firmware_update.sh | ||
| install_program_on_esp32.sh | ||
| main.py | ||
| README.md | ||
| requests.py | ||
| uota.cfg | ||
| version | ||
SDLOGGER
sdlogger takes all data from uart0 rx and writes it onto a sdcard.
available commands
- RTC
- "epoch" : unix timestamp in seconds
- upload
- wlan_ssid
- wlan_password: optional, do not provide if open wlan is to be used
- upload_server: server URL, e.g.: "http://localhost" port 80/443 will get autoassigned based on http or https
- router_mac: mac address of the router, will be used in filename
- UOTA
- wlan_ssid
- wlan_password: optional, do not provide if open wlan is to be used
- reset
- no options
creating JSON for commands
#! /usr/bin/env python
import json
json.dumps({'cmd': 'RTC','epoch':123456778890})