Npm docs setup (#834)
* added vuepress to package json * use vuepress from package json
This commit is contained in:
1 parent
a7575b2c3a
commit
a83f725bad
10 files changed
+10902
-51
No files matched your search
@@ -8,7 +8,7 @@ So as to pilot the GPIO use the following commands with [simple receiving](../up
|
||||
OFF command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setOFF -m 15`
|
||||
|
||||
ON command
|
||||
ON command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF/setON -m 15`
|
||||
|
||||
or with [json receiving](../upload/pio.md#api)
|
||||
@@ -16,7 +16,7 @@ or with [json receiving](../upload/pio.md#api)
|
||||
OFF command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":0}'`
|
||||
|
||||
ON command
|
||||
ON command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":1}'`
|
||||
|
||||
## FASTLED
|
||||
@@ -28,7 +28,7 @@ ON command
|
||||
2. Start fire animation (Fire2012)
|
||||
|
||||
### Hardware wiring
|
||||
Theoreticaly it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
|
||||
Theoretically it should be possible to use every free IO pin. But after some tests only pin D2 works at WEMOS D1. Other platforms can work.
|
||||
The default setting use NEOPIXEL (WS2812B). The simplest wiring is direct connect D2 to data pin of LED stripe and connect VCC/GND to power source. You should also add an capacitor.
|
||||
|
||||
## PWM
|
||||
|
||||
+2
-2
@@ -86,14 +86,14 @@ you can also force a scan to be done by the following command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m '{"interval":0}'`
|
||||
|
||||
::: tip
|
||||
With Home Assistant, this command is directly avalaible through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
|
||||
With Home Assistant, this command is directly available through MQTT auto discovery as a switch into the HASS OpenMQTTGateway device entities list.
|
||||
:::
|
||||
|
||||
Once the forced scan has completed, the previous scan interval value will be restored. Forcing a scan command trigger also a BLE connect process after the scan (see below).
|
||||
|
||||
The default value `TimeBtwRead` is set into config_BT.h or into your .ini file for platformio users.
|
||||
|
||||
::: info
|
||||
::: tip INFO
|
||||
For certain devices like LYWSD03MMC OpenMQTTGateway use a connection (due to the fact that the advertized data are encrypted), this connection mechanism is launched after every `ScanBeforeConnect` per default, you can modify it by following the procedure below.
|
||||
:::
|
||||
|
||||
|
||||
Reference in new issue
Block a user