IOT: Difference between revisions
Jump to navigation
Jump to search
(→Server) |
|||
Line 3: | Line 3: | ||
==Server== | ==Server== | ||
=== MQTT server === | |||
==== Mosquitto ==== | |||
[[https://mosquitto.org/ Mosquitto ]] | |||
==== Vernemq ==== | |||
[[https://vernemq.com VerneMq ]] | |||
===== Add User ===== | |||
* Add user | |||
<syntaxhighlight lang="Bash"> | |||
vmq-passwd -c /etc/vernemq/vmq.passwd henry | |||
</syntaxhighlight> | |||
* Delete User | |||
<syntaxhighlight lang="Bash"> | |||
vmq-passwd -D /etc/vernemq/vmq.passwd henry | |||
</syntaxhighlight> | |||
==Hardware== | ==Hardware== |
Revision as of 02:22, 8 June 2019
Composant
Server
MQTT server
Mosquitto
[Mosquitto ]
Vernemq
[VerneMq ]
Add User
- Add user
vmq-passwd -c /etc/vernemq/vmq.passwd henry
- Delete User
vmq-passwd -D /etc/vernemq/vmq.passwd henry
Hardware
[NodeMCU Lua ESP8266 ESP-12 WeMos D1 Mini WIFI 4M Bytes Development Board Module]
Mode GPIO0 GPIO2 GPIO15
- Flash (démarrage normal: exécution du programme installé en Flash) 3.3v 3.3v GND
- UART (upload à partir de la liaison série) GND 3.3v GND
- SDIO (démarrage à partir d'une carde SD) peu importe peu importe 3.3v
IDE Arduino
Configuration
General
- File -> Preferences -> Additional Boards Manager URLs : http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Tools -> Boards -> Boards Manager:
- Search for ESP8266
- Install Esp8266 by Esp8266 Community
NodeMCU Lua ESP8266 ESP-12 WeMos D1 Mini WIFI 4M Bytes
- Tools -> Boards -> "WeMos D1 R2 & Mini"
- CPU Frequency 80 Mhz
- Upload Speed -> 115200
Adafruit HUZZAH ESP8266 breakout
- Tools -> Boards -> "Adafruit HUZZAH ESP8266"
- CPU Frequency 80 Mhz
- Upload Speed -> 115200
Huzzah Reset
- Hold down the GPIO0 button, the red LED will be lit
- While holding down GPIO0, click the RESET button
- Release RESET, then release GPIO0
- When you release the RESET button, the red LED will be lit dimly, this means it's ready to bootload
Lolin NodeMcu v3
- Tools -> Boards -> "NodeMcu 1.0 (ESP-12E" Module)
- CPU Frequency 80 Mhz
- Upload Speed -> 115200
TRoubleShooting
sync
- Try to load a new project