Commit Graph

112 Commits

Author SHA1 Message Date
Andrius Štikonas 727caaa333 Add ScheduleFormat enum. 2020-11-21 01:39:15 +00:00
Andrius Štikonas f51fb1ce32 Add set_format. 2020-11-20 23:39:20 +00:00
Andrius Štikonas 6973ec8d17 Neohub can return invalid JSON. Assume that command failed.
E.g.

{"error":"Invalid argument to SET_TEMP_FORMAT, should be "C" or "F" "}

Correct JSON would be
{"error":"Invalid argument to SET_TEMP_FORMAT, should be \"C\" or \"F\" "}
2020-11-20 23:26:45 +00:00
Andrius Štikonas 175497b15b Add method to set temperature format. 2020-11-20 23:17:40 +00:00
Andrius Štikonas 135c6033bc Add mechanism to compare expected replies. 2020-11-20 23:13:16 +00:00
Andrius Štikonas 1c75067de9 Add Set Channel method. 2020-11-20 22:45:37 +00:00
Andrius Štikonas e7a5a15a75 Read socket data until null character. 2020-11-20 21:59:14 +00:00
Andrius Štikonas 7827133b89 Remove unused variable 2020-11-20 21:41:45 +00:00
Andrius Štikonas 688995ba82 Add get_system call. 2020-11-20 21:41:06 +00:00
Andrius Štikonas 0fb1805f80 Add command to reboot neohub. 2020-11-20 19:38:02 +00:00
Andrius Štikonas 1fe59a4255 Cache firmware version when connecting to hub. 2020-11-20 19:14:44 +00:00
Andrius Štikonas 1549113abd Async library to communicate with NeoHub2. 2020-11-20 18:47:02 +00:00