Changelog:
- General: Some timeouts improvements.
Changelog v2.1.0:
-
General: Better handle of GPIO 1 and 3 when they are used as normal GPIOs.
-
Lightbulb: Fixed wildcard action bug when turn off light.
-
General Config: Added UART configuration to use UART actions.
You can declare 1 or 2 UARTs.
"r":
Array of UARTs.
"n":
UART to be configured. Values can be:
**0
UART0. It uses GPIO 1 and 3.
**1
UART1. It uses GPIO 2.
**2
UART0 with swapped GPIO. It uses GPIO 13 and 15 instead 1 and 3.
"s":
Speed. Default 115200.
"p":
Parity.0
: none,1
: even,2
: odd. Default 0.
"b":
Stop bits.0
: 0 bits,1
: 1 bit,2
: 1.5 bits,3
2 bits. Default 0. -
Actions: New action type supported: UART commands.
UART Action format:"u":[{"n":<0,1>,"v":"command_to_send","d":<delay_in:_ms>}]
"u":
Array of UART commands.
"n":
UART to be used (0 or 1). Default0
.
"v":
Command to send, in HEX format without spaces. Eg:"v":"01b364007aff04"
"d":
Delay in milliseconds after next UART command. Only has effects when some UART commands are declared into array. Default0
.
When UART0 is used, logs will be redirect to UART1 if it is not used.
- HTTP Actions: Now it is called HTTP/TCP actions. Added two new modes:
"m":3
TCP RAW mode. Send content as it, without any HTTP header. Useful to comunicate with websockets or any other protocol outside HTTP.
"m":4
Like mode 3, but content must be in HEX format without spaces. Eg:"c":"01b364007aff04"
.
Using new modes 3 and 4,"u:"
URL key does not make sense.
Wiki will be updated as soon as possible.
Read Wiki for more info.