IOT

From Objectif Client Inc
Revision as of 04:30, 17 October 2020 by Nicolas (talk | contribs) (→‎Server)
Jump to navigation Jump to search

Composant

Server

MQTT server

Mosquitto

[Mosquitto ]

Manage Users
  • Initial Password File
mosquitto_passwd -c /etc/mosquitto/passwd <user_name>
  • Add a new user
mosquitto_passwd -b passwordfile user password

Vernemq

[VerneMq ]

Manage Users
  • Create or replace password file
vmq-passwd -c /etc/vernemq/vmq.passwd username
  • Add a user to an existing password file
vmq-passwd -a /etc/vernemq/vmq.passwd username
  • Delete User
vmq-passwd -D /etc/vernemq/vmq.passwd username
Show plugins

Show plugins vmq-admin plugin show

Enable Plugin vmq-admin plugin enable --name=vmq_acl

Disable a plugin vmq-admin plugin disable --name=vmq_acl

Blynk

[Blynk ]

Access

Hardware

[NodeMCU Lua ESP8266 ESP-12 WeMos D1 Mini WIFI 4M Bytes Development Board Module]

[Adafruit HUZZAH ESP8266]

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

  1. File -> Preferences -> Additional Boards Manager URLs :
    1. http://arduino.esp8266.com/stable/package_esp8266com_index.json
    2. https://dl.espressif.com/dl/package_esp32_index.json
    3. https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
  1. Tools -> Boards -> Boards Manager:
    1. Search for ESP8266
    2. 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 -> "ESP32 Dev Module"
  • CPU Frequency 80 Mhz
  • Upload Speed -> 115200

HiGrow

  • Tools -> Boards -> "Adafruit HUZZAH ESP8266"
  • CPU Frequency 80 Mhz
  • Upload Speed -> 921600
  • Flasj Mode -­ DIO
Huzzah Reset
  1. Hold down the GPIO0 button, the red LED will be lit
  2. While holding down GPIO0, click the RESET button
  3. Release RESET, then release GPIO0
  4. 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


Wio Terminal

  • Get Started
  1. Get Started
  2. Display Gyro Demo
  • Library to load: sketch -> Include Library -> Add .ZIP Library
  1. Seeed_Arduino_atWiFi
  2. Seeed_Arduino_FreeRTOS
  3. Seeed_Arduino_atUnified
  4. esp-at-lib esp-at-lib esp-at-lib
  5. Seeed_Arduino_mbedtls
  6. Seeed_Arduino_atWiFiClientSecure.git
  • Additional Board: File > Preferences -> Additional Boards Manager URLs:
  1. package_seeeduino_boards_index.json
  2. Install additional boards: Tools > Board > Board Manager and Search Wio Terminal in the Boards Manager
  • Setup
  1. Tools -­> Boards -­> Seeeduino Wio Terminal
  2. Cpu Frequency -­> 120 Mhz
  3. Upload Speed -­>

TroubleShooting

sync

  1. Try to load a new project