This projekt links an API to a 433MHz transmitter. This is based on the ESP32.
- ESP32
- 433MHz transmitter
- GET: returns the WiFi status
- GET: returns the styles for the web interface
- GET: returns the logs
?key=your-api-key: returns the logs?clear: clears the logs
- GET: set or return the config
?ssid=your-ssid&password=your-password: set the WiFi config?show: returns the config
- GET: transmit a code
?key=your-api-key: authorization&msg=your-message: the message to transmittype=your-type: the type of the message (hex&binare supported)
Visual Studio Code with PlatformIO
- install PlatformIO
Move directory data-sample to data
mv data-sample dataEdit data/config.json
{
"wifi": {
"ssid": "myssid",
"password": "mypassword",
"hostname": "your-hostname",
"port": 80
},
"microcontroller": {
"serial_baudrate": 9600
},
"transmitter": {
"pin": 27,
"protocol": 1,
"pulse_length": 500
},
"api": {
"key": "your-api-key"
}
}pio run -t buildfs && pio run -t uploadfspio run -t uploadpio device monitor