mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Merge pull request #33 from DmitryBorisenko33/dev
Проверил полностью модуль serial
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
serialBegin 9600 12 13
|
||||
button 1 na Управляется#из#arduino Serial 0 1
|
||||
button 2 na Отправить#в#arduino Serial 0 2
|
||||
text 1 Текст#из#arduino Serial 3
|
||||
|
||||
//12 13 это пины uart к которым вы можете подключить arduino. Скетч для arduino выложен в группу.
|
||||
//команда serialWrite ard-on отправит в arduino текст ard-on
|
||||
@@ -0,0 +1,6 @@
|
||||
button2 = 1
|
||||
serialWrite ard-on
|
||||
end
|
||||
button2 = 0
|
||||
serialWrite ard-off
|
||||
end
|
||||
@@ -71,6 +71,7 @@ void CMD_init() {
|
||||
#ifdef SERIAL_ENABLED
|
||||
sCmd.addCommand("serialBegin", serialBegin);
|
||||
sCmd.addCommand("serialWrite", serialWrite);
|
||||
sCmd.addCommand("getData", getData);
|
||||
#endif
|
||||
|
||||
#ifdef LOGGING_ENABLED
|
||||
@@ -99,7 +100,7 @@ void CMD_init() {
|
||||
sCmd.addCommand("firmwareUpdate", firmwareUpdate);
|
||||
sCmd.addCommand("firmwareVersion", firmwareVersion);
|
||||
|
||||
sCmd.addCommand("getData", getData);
|
||||
|
||||
|
||||
handle_time_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user