Commit Graph

173 Commits

Author SHA1 Message Date
ZanzyTHEbar
061e3cb8d3 update
- setup default mDNS hostname to be user configurable
2022-12-03 05:17:30 +00:00
ZanzyTHEbar
5ca84d2316 update
- set mDNS default valeu to be dynamic
2022-12-03 05:03:40 +00:00
ZanzyTHEbar
70c8d1697b update
- fix bug in mDNS handler
2022-12-03 04:49:08 +00:00
ZanzyTHEbar
09bfc2c964 add back-in missing break statement 2022-12-03 02:30:48 +00:00
ZanzyTHEbar
74f3f27b56 fix mDNS handler not starting bug 2022-12-03 02:27:59 +00:00
ZanzyTHEbar
e7ea1341a3 update
- remove MDNS name build flag
2022-12-03 02:08:08 +00:00
lorow
2827ab8717 make api responses consistent: status -> msg 2022-12-01 23:37:40 +01:00
lorow
e137601fc5 Add ping and save routes, remove atomic saves from config endpoints 2022-12-01 23:03:30 +01:00
ZanzyTHEbar
c850372243 update
- implement setTxPower into main API
- implement temporary dedicated global method
- implement wifiConfig method per network
2022-12-01 21:25:29 +00:00
ZanzyTHEbar
6a1192b356 update
- add deviceConfigSave
- add mdnsConfigSave
- add request send 200 to setDeviceConfig api event
2022-12-01 20:44:04 +00:00
ZanzyTHEbar
a636036365 add setTxPower to initSTA 2022-11-28 18:15:43 +00:00
ZanzyTHEbar
42413febee update
- remove WiFi.mode and WiFi.setSleep from initSTA
- these methods were called twice if there is networks in the config
however they fail to connect for some reason
2022-11-28 18:12:29 +00:00
ZanzyTHEbar
3f3e721519 update
- move Wifi.setTxPower below Wifi.begin
2022-11-28 18:05:59 +00:00
ZanzyTHEbar
8fde33b172 update
- change if to else if for handlers in baseAPI
2022-11-27 21:21:16 +00:00
ZanzyTHEbar
1be8e5fe19 set default TX level to 5dBm 2022-11-27 21:04:22 +00:00
lorow
18ac6ff484 Fix wifi command not updating/adding new networks 2022-11-23 01:23:51 +01:00
lorow
5dc236af06 Add documentation regarding passing down empty fields in baseAPI 2022-11-23 00:08:51 +01:00
lorow
6a2f003761 Extract queryMDNS to feature/mdns-query 2022-11-23 00:06:25 +01:00
ZanzyTHEbar
e20d960dec update
- fix query service
- save result of query service to the config
2022-11-17 22:51:22 +00:00
ZanzyTHEbar
656f8e80f5 update
- basic formatting
2022-11-17 21:38:13 +00:00
ZanzyTHEbar
1fec7f6e3e update
- add cpu clock setting
2022-11-17 21:29:55 +00:00
lorow
a223039a5a implement getJsonConfig command 2022-11-11 00:43:55 +01:00
ZanzyTHEbar
326ec8e4cd Major Update
- migrate the rest of the toRepresentation methods out of header file
- optimize toRepresentation methods
- add query service to set up service name and hostname
2022-11-01 22:12:16 +00:00
ZanzyTHEbar
746a0a9f9b Major Update
- migrate toRepresentation methods out of header file
- optimize toRepresentation methods
- add helper for string formatting
- put proper include guards in helper and MDNSManager
- begin adding queryMDNS code
2022-11-01 20:24:50 +00:00
ZanzyTHEbar
88f5cf29b7 Major Update
- fixed Hostname issue with ArduinoOTA and mDNS
- fix flashing binary issue on Unix systems
2022-11-01 18:32:05 +00:00
ZanzyTHEbar
ef1fa0314f update
- found bug in config manager
- fixed bug
2022-11-01 17:11:17 +00:00
ZanzyTHEbar
168993128e update
- move the MDNSHandler constructor definition to cpp file
This is cleaner and proper class structure - definitions never go
header files unless it's a template
2022-11-01 17:03:17 +00:00
lorow
b2d7abe954 Add basic toRepresentation serialization methods for config elements 2022-10-25 00:25:58 +02:00
lorow
4baf7a89c4 Remove unused API methods, fix missing pinout issues, fix OTA not having a password set up correctly, fix missing default password in platformio file 2022-10-16 20:07:23 +02:00
Lorow
adb7853c71 Fix default values for camera config, fix brightness setting affecting brightness instead of acg_gain 2022-10-02 21:32:45 +02:00
Lorow
ce8b27dee4 Fix MDNS not starting properly and always having the same service name 2022-10-02 18:49:05 +02:00
ZanzyTHEbar
86084ecd06 update
- basic formatting
2022-09-26 13:40:59 +01:00
ZanzyTHEbar
1c324fc0ac update
- fix pattern struct assignment to be discrete per method
2022-09-25 14:17:05 +01:00
ZanzyTHEbar
69d2666f20 Update
- Added LED debugging to cameraHandler setup method
2022-09-25 13:38:03 +01:00
ZanzyTHEbar
e3de6584f1 update
- add the last remaining states to the map
2022-09-25 13:27:57 +01:00
ZanzyTHEbar
803eea15c2 update
- update LEDManager blink method to use the ledStateMap
- update handleLED method to turn the LED off on an incorrect state-match
2022-09-25 13:25:48 +01:00
ZanzyTHEbar
40ca34c382 update
- Add one new state to LEDStates enum
- Added proper lookup-table based state mapping for led states
- created a handleLED method to call in the loop
2022-09-25 13:12:03 +01:00
ZanzyTHEbar
335abd1de8 update
- Optimizing StateManager
- Create LEDStates enum
- Migrate entire project to StateManager
2022-09-25 11:54:57 +01:00
ZanzyTHEbar
6f68b45704 Update
- fix bug in my_delay function
- edit LEDManager to handle blocking and non-blocking methods
2022-09-25 10:49:38 +01:00
ZanzyTHEbar
4ad516eb77 update
- Added a comment about the elseif chains
2022-09-20 12:12:59 +01:00
ZanzyTHEbar
f7f629240b update
- Add brightness to API
2022-09-20 12:10:16 +01:00
ZanzyTHEbar
94d5872e99 update
- Added CameraConfig_t struct to the initStruct method
- initialized with default values
- Added brightness setting
2022-09-20 11:50:25 +01:00
ZanzyTHEbar
2b745a3d1d update
- return optimize the cameraHandler.cpp methods to remove needless if-else checking
2022-09-20 10:24:40 +01:00
Lorow
01f04fee86 Refactor camera to that it's initialization is signal based, depending on config loading successfully 2022-09-19 23:49:37 +02:00
Lorow
490b1ea6c2 Fix subject calling the base update() method instead of the derived one on notify 2022-09-16 22:20:47 +02:00
ZanzyTHEbar
3c1f3312e7 update
- Fix potential bug in config read and write after 10 iterations through the for loop
2022-09-13 17:24:56 +01:00
ZanzyTHEbar
9b965c224b update
- Re-write bool cast for restartCamera method
- Removed preferencesapi library - no longer needed
2022-09-13 17:13:29 +01:00
ZanzyTHEbar
35d615e96c update
- add support or Git tags in the firmware name
2022-09-10 18:06:38 +01:00
ZanzyTHEbar
711905a1f4 large update
- Added auto-versioning system to firmware name
- Formatted ini file
- setup OTA enabled state to be controllable by the user
2022-09-10 17:25:29 +01:00
ZanzyTHEbar
3f0c0dfee5 update
- Add min_spiffs.csv as default partition table
2022-09-10 15:33:46 +01:00