127 Commits

Author SHA1 Message Date
lyon
e1fb488b29 add test for socket_json issue 2023-02-15 11:25:38 +08:00
lyon
165cc7d041 fix thread and socket on freertos
use pikaMalloc/Free inner platform_thread()

socket multithread test passed on linux

update

improve fast_test.sh
2023-02-14 19:37:30 +08:00
lyon
994bb3bdc5 add weakref
add PikaUI test

test PikauI_core passed

save host_obj on methodArg

support save host_obj for method
2023-02-11 00:58:58 +08:00
lyon
cd0029b6d1 fix modbus panic when decode faild 2023-02-10 11:07:25 +08:00
lyon
73e056141b fix mem leak when exit thread
support tuple args for _thread.start_new_thread()

update _thread
2023-02-01 21:35:49 +08:00
lyon
73b9effffd fix suger_multiassin inner def or class 2023-01-30 01:47:18 +08:00
lyon
69cea1d718 fix ci 2023-01-27 23:00:53 +08:00
lyon
897a7eba0b fix str() for bytes 2023-01-26 15:58:58 +08:00
lyon
94624f9a4a release netwrok 2023-01-25 19:28:57 +08:00
lyon
9b82685e4d check faild on network
fix pos to kw when no enough pos

ifconfig test ok
2023-01-25 14:13:09 +08:00
lyon
262bc09f1e test wifi sacn on linux 2023-01-25 00:25:18 +08:00
lyon
63cc3434ee ready to merge arg_singlePrint and _print_arg 2023-01-23 23:53:40 +08:00
lyon
68fac66530 fix fn and arg scope, support type() for basic arg 2023-01-23 23:53:40 +08:00
lyon
02d6151cac support json.dumps() 2023-01-21 17:17:28 +08:00
lyon
623547cf99 support json.loads() 2023-01-21 15:48:53 +08:00
lyon
3afb460bf4 fix mem leak when mqtt subscribe, use fake data 2022-12-27 23:24:15 +08:00
lyon
720f35c8b4 fix test 2022-12-27 22:55:37 +08:00
lyon
7d476ff971 support evt.topic, evt.qos, evt.msg for mqtt cb 2022-12-27 22:53:13 +08:00
FlintJ
52f21cbc3c Merge branch 'mqttdev' of https://gitee.com/lyon1998/pikascript into mqttdev 2022-12-27 17:02:45 +08:00
FlintJ
329efb5ced Mask C function printf and 2022-12-27 17:01:56 +08:00
lyon
83680dce51 Merge branch 'master' into mqttdev 2022-12-27 16:04:29 +08:00
FlintJ
a729147989 fixed the setVersion function and implement the disconnect callback function 2022-12-27 15:53:20 +08:00
lyon
256319e035 update port linux std
fix baseDev.addEventCallBack

use setCallBack in std

update std

support flow control for uart

add flowcontrol API for std.uart
2022-12-23 18:43:08 +08:00
dreamcmi
29401169c9 iotcloud adapts to the new upstream api 2022-12-23 15:50:29 +08:00
dreamcmi
3c61a38e6d Merge branch 'master' into add/iotcloud 2022-12-23 15:14:28 +08:00
dreamcmi
0235802497 Merge branch 'mqttdev' into add/iotcloud 2022-12-23 15:08:01 +08:00
dreamcmi
8a1c8f0c87 optimize parameter properties and default values of mqtt 2022-12-18 22:25:27 +08:00
FlintJ
47f502928b Optimize the callback function of subscribe function 2022-12-18 21:47:23 +08:00
lyon
cd062ff909 fix subscribetopic typo and fix mem leak 2022-12-18 18:48:16 +08:00
dreamcmi
a8bd50cfae hmac compatible cpython input parameters 2022-12-18 15:40:37 +08:00
FlintJ
16da150d57 The subscribed callback function reports the Qos value 2022-12-18 11:52:20 +08:00
FlintJ
3c69d1d5d4 1.Transfer data to subscribed callback function;2.optimize printouts;3.Optimize function interfaces according to documentation 2022-12-18 00:41:57 +08:00
dreamcmi
d6b62528d5 fix tencent generate 2022-12-17 19:12:09 +08:00
dreamcmi
eddcaff074 fix function and add tencent iot hub 2022-12-16 23:57:27 +08:00
dreamcmi
d29057097c add iotcloud aliyun 2022-12-16 22:27:19 +08:00
dreamcmi
55502bf27d Merge branch 'mqttdev' into add/iotcloud 2022-12-16 22:16:18 +08:00
dreamcmi
b520bc84cd fix hmac 2022-12-16 21:36:35 +08:00
lyon
dc725a06b4 Merge branch 'master' into mqttdev 2022-12-15 16:18:52 +08:00
dreamcmi
318021c05d add base64 lib 2022-12-14 14:33:52 +08:00
FlintJ
d2e697549c improve the callback function set in the subscribe function And add mqtt will function 2022-12-11 21:42:55 +08:00
FlintJ
41fab8447e fixed an error with the subscribe function 2022-12-11 20:09:29 +08:00
FlintJ
23b53fe4e0 improvements were made to subscribe function but still have a bit problem 2022-12-11 19:08:16 +08:00
FlintJ
d2a26404a9 add test_mqtt pyscript and improve the publish function with QOS parameter 2022-12-11 14:54:56 +08:00
lyon
d78aec86dd fix mem leak caused by kw pars refcnt err 2022-12-10 17:10:15 +08:00
lyon
853d5be3b5 fix leak when load kw dict to default 2022-12-10 16:30:43 +08:00
lyon
0f51072065 Merge branch 'master' into request-support 2022-12-10 15:28:34 +08:00
onceday
0aaf68a189 finish post test 2022-12-10 22:57:07 +08:00
dreamcmi
fa157f549c add aes 2022-11-25 01:30:41 +08:00
onceday
5b0d7ae950 basic functions 2022-11-24 23:28:37 +08:00
onceday
3d773b5709 cycle never stop 2022-11-23 23:58:14 +08:00