https://github.com/ctron/drogue-thing
A Thing, for the Internet, built with Drogue IoT.
https://github.com/ctron/drogue-thing
iot iot-devices
Last synced: about 1 month ago
JSON representation
A Thing, for the Internet, built with Drogue IoT.
- Host: GitHub
- URL: https://github.com/ctron/drogue-thing
- Owner: ctron
- License: apache-2.0
- Created: 2020-09-22T16:03:27.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-02-10T16:06:46.000Z (over 5 years ago)
- Last Synced: 2025-02-23T11:17:41.692Z (over 1 year ago)
- Topics: iot, iot-devices
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A "Drogue IoT" Thing
An example device, implemented with Drogue IoT in Rust.
NOTE: This is mostly my personal example project and playground.
## Pre-requisites
* STM32F723E-DISCOVERY board
* ESP-01 (plugged in the Wi-Fi slot)
* STM32F411 Nucleo 64
* ESP-01 wired up to UART1
* BME680 sensor connected to I2C1
## Build
For STM32F411:
env CC=/usr/bin/clang cargo embed --release --features stm32f411
For STM32F723:
env CC=/usr/bin/clang cargo embed --release --features stm32f723
## Wi-Fi credentials
You can put your Wi-Fi credentials into the following files:
* `src/wifi.ssid.txt`
* `src/wifi.password.txt`
When you enable the feature `custom_wifi`, it will use the information from these files.
## Display
The example allows to plug in a display as well. As there is a huge varietey of models and drivers, it is
necessary to adapt the code to yours. That is why this is an additional feature `display`, which needs to
be activated explicitly.
When enabled, by default, it expects an "ssd1351" display having a size of 128x128, with RGB565 color format.
As display support is implemented using `embedded-graphics`, it should be relatively simple to implement a different
display type.