261 Commits

Author SHA1 Message Date
5b30e0317d fix warning about const char & upgrade arduino json library 2024-04-26 13:26:07 +02:00
50d48dcfe2 Merge branch 'oil_sensor-switch' into gateway 2023-05-19 10:49:32 +02:00
fdc7712b9d Merge branch 'f/advanced-receiver' into gateway 2023-05-19 10:41:30 +02:00
672691fe00 add support for displaying raw values - for finding new remotes 2023-05-17 16:31:23 +02:00
8e8fdf6611 add fritzing for oil sensor 2023-02-22 23:00:22 +01:00
9862b91bf1 use pro mini as sensor with attiny85 as controller 2023-02-22 23:00:22 +01:00
4cee82f28d update documentation 2023-02-22 22:30:24 +01:00
bfe2280d16 Merge branch 'gateway' 2023-02-20 20:19:56 +01:00
50b0762604 Merge branch 'gw/testing' into gateway
- move all tests into native
2023-01-28 09:10:11 +01:00
65b9ce8dc1 remove embedded test from pipeline 2023-01-28 09:09:40 +01:00
37fc2ab103 move sensor_builder tests into native 2023-01-28 09:09:40 +01:00
624f26c751 update testing 2023-01-28 09:09:40 +01:00
2a591cb28f Merge branch 'gw/serial-reader' into gateway
- use private library for serial reader
- optimize memory usage
- reduce memory needed for json serialization/deserialization
- remove the need for array commands
2023-01-28 09:04:06 +01:00
41ad1b4348 increase reset time
- compensates for old timeout in serial reading
2023-01-22 16:44:01 +01:00
ed755abb14 more json optimization:
- reduce allocated size using correct const/not const char*
- double buffer size for input serial
2023-01-22 14:50:15 +01:00
c61880db57 echo needs to display '\n' 2023-01-21 21:21:15 +01:00
c508092b5c extract error handling to reduce stack mem usage 2023-01-21 19:19:45 +01:00
69554f441a use private serial reader library
array is no longer needed:
- reduce json from 512 to 100
- no need for trailing comma
- no need to use []
2023-01-21 19:18:23 +01:00
a588f56e38 fix: change board to actual pro mini 2023-01-21 16:14:58 +01:00
e75fdac730 don't build & test on production 2023-01-20 14:56:53 +01:00
c8710a1cc9 return error as json and reduce json documents 2022-10-29 13:09:23 +02:00
e3e13c2536 upgrade json library 2022-10-28 16:48:54 +02:00
11f3591d84 add static check 2022-10-28 16:48:51 +02:00
ab04a72996 Merge pull request 'gw/testing' (#4) from gw/testing into gateway
Reviewed-on: #4
2022-10-28 13:43:52 +02:00
5532582531 test max values 2022-10-28 09:00:18 +02:00
5284ce9b41 define masks for tiny components 2022-10-28 09:00:18 +02:00
4ec9b50b1c fix lib path for simavr in pipeline 2022-10-28 09:00:05 +02:00
f9ae76aadf add embedded tests for building sensor 2022-10-27 21:31:49 +02:00
7a10b9e770 fix value construction in tiny 2022-10-27 20:41:09 +02:00
f9a34ff31a extract decoder for easy testing 2022-10-27 17:25:25 +02:00
32d9183b5e add decoded raw_value 2022-10-27 17:10:32 +02:00
1e695faef0 fix sensor building 2022-10-27 15:00:24 +02:00
bdf87cab17 use pointers to fix virtual calls 2022-10-27 15:00:24 +02:00
0ebb9902df fix finding protocol implementation 2022-10-27 15:00:24 +02:00
8319ae3b5d use reference to avoid copying 2022-10-27 10:48:57 +02:00
95dd0f771f separate sensor from generic in protocol 2 2022-10-27 10:44:05 +02:00
f9bcdecb57 cleanup 2022-10-26 10:36:54 +02:00
c053cc9310 separate fromJson logic 2022-10-26 10:36:26 +02:00
1b984d4987 separate toJson logic for each protocol 2022-10-26 10:35:45 +02:00
8f95262fd4 return by value
split protocol handling
2022-10-25 23:23:49 +02:00
640368af42 put back id inside sensor block 2022-10-25 21:33:56 +02:00
f1e67a80d4 fix reference and types 2022-10-25 18:05:37 +02:00
5b1948df26 reverse engineer protocol 1 value 2022-10-25 17:22:08 +02:00
a85f4200c5 Merge pull request 'gateway: execute array but echo each executed command' (#2) from gateway into master
Reviewed-on: #2
2022-10-25 14:02:46 +02:00
389242f493 make a copy of cmd, ArudinoJson alters original one 2022-10-24 20:59:07 +02:00
d232bc4ffa write json directly into Serial 2022-10-24 20:58:46 +02:00
ac8dd2c807 refactor into smaller functions 2022-10-24 20:54:45 +02:00
cb95fbba71 echo every command in array 2022-10-24 20:54:38 +02:00
711ba29f15 Merge branch 'oil_sensor' 2022-10-17 15:13:21 +02:00
52ad568dc1 Merge branch 'gateway' 2022-10-17 15:09:21 +02:00