This project contains a iot devices with mongoose os.
- ESP8266
- Light rgb
- Light
- Smartlock pulse mode
Before beginning, you must have the mos tool installed. For more info, see the mos installation instructions.
- First, clone the devices
$ git clone https://github.com/tiagoguirra/iot-devices.git
-
Open device folder
-
Building the firmware: (esp8266 or esp32)
$ mos build --platform esp8266
- To flash the device: (esp8266 or esp32)
$ mos flash
- Configure WiFi:
- Connect to acces point with name beginning with "IOT"
- Open browser and acess page http://192.168.4.1
- Type it device name, user id, wifi name, wifi password and save
If you want to restart the interface, press the flash button for 5 seconds
- Configure MQTT:
mos aws-iot-setup --aws-region us-east-1 --aws-iot-policy mos-default
- To stream logs to the terminal:
$ mos console
- To open up the Web UI:
$ mos