Commit Graph

248 Commits

Author SHA1 Message Date
openshwprojects
8786b4eb41 remaining change detectors 2022-04-17 03:26:57 +02:00
openshwprojects
eeba31415f 2KB main config structure (NET_PARAM is 4096 so 2048 bytes left free) 2022-04-17 00:30:45 +02:00
openshwprojects
01d9ec54e5 HAL pins 2022-04-16 17:21:42 +02:00
openshwprojects
94aae1fadb on bl602, any pi ncan be pwm 2022-04-16 15:55:44 +02:00
openshwprojects
9b88617fa0 corrrect names for threads 2022-04-16 02:09:58 +02:00
openshwprojects
429d3f6218 bl602 testing 2022-04-15 22:58:11 +02:00
openshwprojects
7ffa51c003 clear up reduntant headers 2022-04-15 20:49:49 +02:00
openshwprojects
04f48ac886 bl602 port p1 2022-04-15 20:31:43 +02:00
openshwprojects
e8e5e61d49 hal main 2022-04-15 15:07:07 +02:00
openshwprojects
61871a753a reorganize, reboot xr809 2022-04-15 14:39:46 +02:00
openshwprojects
66aa9277f8 xr809 fixing and organziation 2022-04-15 14:07:26 +02:00
openshwprojects
db603b1ae4 gi, comments 2022-04-15 12:10:20 +02:00
openshwprojects
73f4fb879d reorganize p1 2022-04-15 11:52:36 +02:00
openshwprojects
d9b77c8eac fix warnings p3 2022-04-15 11:13:31 +02:00
openshwprojects
6083322fef Merge pull request #74 from btsimonh/bootfailurestartup
Modify startup when in AP mode.
2022-04-15 10:05:37 +02:00
openshwprojects
58e36cd335 stub for Tasmota http commands interface 2022-04-13 18:08:28 +02:00
btsimonh
9686d52861 Pins: Separate actual pin h/w config from PIN_LoadFromFlash into new fn PIN_Setup(), so that we can load the pin config without setting it as active.
new variable g_enable_pins - if zero, no h/w config can be done.
new static var mqtt_initialised - set in mqtt_init, used to prevent mqtt__RunEverySecond if mqtt not initialised.
user_main.c - don't enable many functions if in AP mode.
2022-04-13 08:38:05 +01:00
openshwprojects
be7ce8f330 add missing reset 2022-04-12 17:36:55 +02:00
openshwprojects
9c6d09845d BL0942 support with calibration 2022-04-12 13:48:21 +02:00
openshwprojects
0be787713f N version OTA fix 2022-04-11 16:11:23 +02:00
openshwprojects
d176605e20 do not show PWM option on web panel for non-PWM pins because it confuses users 2022-04-11 12:07:41 +02:00
openshwprojects
bb8bb26a6d IOR_DigitalInput (with internal pull up) and IOR_DigitalInput_n (same, but returns inversed value). Should work on N, T and XR809 2022-04-10 22:10:19 +02:00
openshwprojects
e51e288f59 basic MCP23017 support (port exander), it's possible to map channels to MCP ports 2022-04-10 21:24:38 +02:00
Himal
18e38a2a20 Add '[BK7231N][CB3S] Tuya Smart Wifi Switch 4 Gang' Template 2022-04-09 08:42:15 +05:30
openshwprojects
5a28f9f3a0 tuyamcu commands, time zone offset simple setting for ntp 2022-04-08 19:38:17 +02:00
openshwprojects
e880a86e9a PLATFORM_BK7231N scan wifis 2022-04-07 00:52:58 +02:00
openshwprojects
a42de81fa4 experimental i2c drivers system 2022-04-07 00:08:11 +02:00
openshwprojects
ca653be7ac add template for smart light bulb RGBCW device from Tuya, bk7231N, see https://www.elektroda.pl/rtvforum/viewtopic.php?t=3880540&highlight= 2022-03-19 15:04:01 +01:00
btsimonh
03c89ca3d2 Add Avatar 5v LED strip 2022-03-14 21:26:46 +00:00
openshwprojects
775e540271 added my TC74 I2C test code (only hardcoded example) , comment out start_i2c_test to run 2022-03-11 19:10:38 +01:00
openshwprojects
b988c23092 finalize logging clear up 2022-03-07 16:00:19 +01:00
openshwprojects
c1c5757574 ports logs and javascript app to xr809, clear up logging from duplicate log functions 2022-03-07 14:01:15 +01:00
openshwprojects
ba7aba3cb9 xr809 build logging.c 2022-03-07 09:55:00 +01:00
btsimonh
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
btsimonh
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
btsimonh
49a4e73afe chore: warning squashing. 2022-03-05 10:20:13 +00:00
btsimonh
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
btsimonh
22e43c0176 Merge remote-tracking branch 'origin/main' into main 2022-03-04 21:27:13 +00:00
btsimonh
6fa8049892 add command POST at api/cmnd 2022-03-04 21:27:04 +00:00
openshwprojects
2779967149 UNFINISHED tuyaMCU and commands thing 2022-03-04 18:44:58 +01:00
openshwprojects
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
openshwprojects
40bdb68d13 command system - unused, tuya mcu stub 2022-03-04 10:22:17 +01:00
openshwprojects
b60e6fc138 uart tool - http page stub 2022-03-03 01:14:52 +01:00
openshwprojects
89dec74eac support for secondary relay to toggle on button on double clcik 2022-03-02 12:54:50 +01:00
btsimonh
0dfe8bee4d fix LFS.
Add rest folder read - returns JSON of folder.
2022-03-02 09:23:30 +00:00
openshwprojects
f60b9099b3 Merge pull request #46 from ExploWare/newline-unix
Newlines all changed to unix style
2022-03-02 09:05:29 +01:00
btsimonh
dd332a2f31 remove unused variables 2022-03-01 22:37:48 +00:00
btsimonh
6c647bf7bb swap sprintf(xx) poststr(xx) for hprintf128() 2022-03-01 22:30:48 +00:00
btsimonh
6b3294d7c9 re-order functions 2022-03-01 22:06:16 +00:00
btsimonh
71f7778b2f move http into functions. 2022-03-01 21:59:11 +00:00