ba7aba3cb9
xr809 build logging.c
2022-03-07 09:55:00 +01:00
366649d6d9
Logging SHOULD work in Windows now - please test & use it....
...
New scheme - define LOG_FEATURE at the top of a file, then use ADDLOGF_XXX(fmt, ...)
modified new_http.c, user_main.c, to use this.
2022-03-06 17:16:46 +00:00
8b67c09839
initialise g_commands
...
debug in exec.
fix a logging bug.
add commands: logtype direct|all, logdelay <ms>
2022-03-05 15:02:48 +00:00
49a4e73afe
chore: warning squashing.
2022-03-05 10:20:13 +00:00
e9a7d1d4eb
new_cmd - make it not based on globals. Now command can be re-entrant?
...
don't parse args in new_cmd - just cmd & args string. (we can have glbal fns to perform this if required, but current implementation not good for "my name" type args.
Add context in command fn structure. This is generic ptr for any purpose.
modify extsing command usage to fit.
Add logging commands loglevel n and logfeature m n
2022-03-05 10:10:56 +00:00
22e43c0176
Merge remote-tracking branch 'origin/main' into main
2022-03-04 21:27:13 +00:00
6fa8049892
add command POST at api/cmnd
2022-03-04 21:27:04 +00:00
2779967149
UNFINISHED tuyaMCU and commands thing
2022-03-04 18:44:58 +01:00
f98e5e79a8
initial command line and tuyamcu demo to play around with - it's able to send a time (hardcoded) packet to TH06 and the time shows up on the LCD
2022-03-04 11:31:42 +01:00
40bdb68d13
command system - unused, tuya mcu stub
2022-03-04 10:22:17 +01:00
b60e6fc138
uart tool - http page stub
2022-03-03 01:14:52 +01:00
89dec74eac
support for secondary relay to toggle on button on double clcik
2022-03-02 12:54:50 +01:00
0dfe8bee4d
fix LFS.
...
Add rest folder read - returns JSON of folder.
2022-03-02 09:23:30 +00:00
f60b9099b3
Merge pull request #46 from ExploWare/newline-unix
...
Newlines all changed to unix style
2022-03-02 09:05:29 +01:00
dd332a2f31
remove unused variables
2022-03-01 22:37:48 +00:00
6c647bf7bb
swap sprintf(xx) poststr(xx) for hprintf128()
2022-03-01 22:30:48 +00:00
6b3294d7c9
re-order functions
2022-03-01 22:06:16 +00:00
71f7778b2f
move http into functions.
2022-03-01 21:59:11 +00:00
85324135ef
littlefs tweaks:
...
1/ initiliase at startup, but don't create if mount fails.
2/ unmount and re-mount on FS block upload.
3/ don't create on file read if not mounted. (favicon)
4/ allow format of non-existant LFS on file upload.
2022-03-01 09:11:56 +00:00
94f4a8f600
Newlines all changed to Windows style
2022-02-27 23:21:09 +01:00
f6c3c8f689
fix xr809 bu7ild
2022-02-27 22:50:10 +01:00
9056b563de
Add Channel_GetRoleForChannel. Add wal_strnicmp fn. add cmnd/<topic>/color MQTT feature - uses #RRGGBBCWww to set PWM channels - will work for any number of PWM
2022-02-27 18:15:16 +00:00
70f3f02ba3
Merge remote-tracking branch 'origin/main' into flashvarstorage
2022-02-27 13:28:19 +00:00
5688fb5aec
implement boot counting and boot complete for BK7231.
...
4 boots of < 30s -> AP mode. leave booted for >30s, and it will return to normal mode.
2022-02-27 13:25:50 +00:00
de11afdd6a
add a special "Toggle all channels" button (tested only with relays, not with PWMs)
2022-02-26 11:13:50 +01:00
4bfec693ec
quick config added for one of the devicse donated to me recently - raw bk7231t on board
2022-02-25 23:38:06 +01:00
564d62a37c
Adding T version of Qiachip
...
Thanks @boozeman for reminding me! I need to get Git going for me, how to send a local change to my git repo to create it in one single PR, then this would have been included
2022-02-25 08:57:19 +01:00
303fe3a0c8
fix VSCode displayed warnings
2022-02-23 09:05:53 +00:00
32ebba46a8
display USER_SW_VERSION with all checks for supported platforms (it's not defined on XR809 yet)
2022-02-23 03:51:41 +01:00
abe71789eb
delay ota call
2022-02-20 19:31:33 +01:00
20089a946a
xr809 ota
2022-02-20 16:30:02 +01:00
40e98527f6
rest: channel setting bugfixes
2022-02-20 10:16:16 +00:00
5af030eefe
prepare to remove tuya lib from BK7231N version (it was required for BK7231N version beause for N version the functions like tuya hal flash read or tuya hal wifi ap scan was in .lib instead of source c files of SDK)
2022-02-20 01:15:22 +01:00
ca04abc987
Merge remote-tracking branch 'origin/main' into mods
...
# Conflicts:
# src/httpserver/rest_interface.c
2022-02-19 20:13:03 +00:00
c36514c892
move http_rest_get and http_rest_post to top of file for clarity.
...
hash out test_config function (dangerous).
Add http_rest_get_channels, http_rest_post channels - so we can control device over rest API
2022-02-19 20:09:50 +00:00
cdf15801f4
BK7231N OTA support - not tested yet (the OTA address seems different)
2022-02-19 15:47:15 +01:00
e625b168c2
debug information dump
2022-02-19 15:46:13 +01:00
fa972be4eb
Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App
2022-02-19 15:04:57 +01:00
6876a5a7be
display flash ascii
2022-02-19 15:04:36 +01:00
77d5ad31a9
Merge pull request #29 from btsimonh/mods
...
bugfix for POST /api/pins
2022-02-18 11:10:49 +01:00
25553af26a
json bugfix
2022-02-18 09:08:53 +00:00
ed189a0f07
bugfix for POST /api/pins
2022-02-18 09:03:25 +00:00
e627ea7efa
Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App
2022-02-17 20:56:57 +01:00
1985f05940
qiachip bk7231N (N version) template for button and relay pin
2022-02-17 20:56:42 +01:00
f308dd271e
Update new_http.c
...
Fixed Typo for BK7231T naming
2022-02-17 21:36:37 +02:00
0bb3ed19cf
platforms misc stuff, naming so we know if its BK version N, T or maybe XR809 build?
2022-02-17 20:05:56 +01:00
e0d9b38101
show device type, loglevel tool
2022-02-17 19:49:16 +01:00
9090951f40
add GET /api/flash/<hexstart>-<hexend> to read any part of flash
...
e.g. http://192.168.1.176/api/flash/1e0000-1000
reads RF setup table
add POST /api/flash/<hex addr> to WRITE anywhere after 0x132000
2022-02-17 07:57:52 +00:00
f309859cc8
config setting error checking
2022-02-17 02:05:28 +01:00
e896a81e0a
check result of mac change operation because it might fail if somebody has random data in flash config memory
2022-02-16 23:14:43 +01:00