Commit Graph

85 Commits

Author SHA1 Message Date
daishengdong 2e8c8c19e6 fix some calloc bug
1. some calloc fix
2. fix some document error
3. refactor kv API, to be compatible with ota API
2020-04-24 11:58:42 +08:00
Arthur 0aabf39f9a
Merge pull request #143 from DavidLin1577/patch-9
Update tencent_cloud_sdk_coap.c
2020-04-18 09:55:58 +08:00
David Lin 010f129608
Update qcloud_iot_hub_sdk_coap.c 2020-04-17 22:15:54 +08:00
David Lin 559a85329e
Update tencent_cloud_sdk_coap.c
coap is not mqtt,so
mqtt -> coap
2020-04-17 22:13:20 +08:00
David Lin c955a833ec
Update e53_ia1_e2e_demo.h 2020-04-17 17:48:12 +08:00
daishengdong 5c21ce702f add IAP sample project, mini program manual
see:
doc/20.In_Application_Programming_based_EVB_MX_Plus.md
2020-04-15 18:11:13 +08:00
Supowang1989 cdff2bd2e9
Merge pull request #135 from DavidLin1577/patch-6
Fixed some stackover flow bugs in  tcp_client.c/tcp_server.c
2020-04-13 10:19:42 +08:00
Supowang1989 7328f33030
Merge pull request #132 from DavidLin1577/patch-3
Update lora_demo.h
2020-04-13 10:16:21 +08:00
David Lin 23313e8567
Update tcp_server.c
Fixed a stackover flow bug.
2020-04-12 11:12:24 +08:00
David Lin 8832a6477f
Update tcp_client.c 2020-04-12 10:57:12 +08:00
David Lin 3b85266611
Update lora_demo.h
__APP_DEMO_H__ -> __APP_DEMO_H__
2020-04-12 09:03:00 +08:00
wuliang 895b8de45c Add tcp client/server echo example. @EVB_LN882x 2020-04-10 22:16:46 +08:00
wuliang c6894019ec add wifi project.(board/EVB_LN882x, example/wifi_ln882x, platform/vendor_bsp) 2020-04-09 21:44:09 +08:00
daishengdong 032af66467 add socket wrapper for at framework
you can use at framework to send/recv data in socket API
example: see examples\tcp_through_module_based_at_socket
project: see board\TencentOS_tiny_EVB_MX_Plus\KEIL\tcp_through_module_based_at_socket
2020-04-07 16:39:13 +08:00
Winfred LIN 47d6313ba1 added reading flash functions for stm32l0xx series
1. implemented HAL_StatusTypeDef HAL_FLASH_ReadWord(uint32_t Address, uint32_t* Data); and HAL_StatusTypeDef HAL_FLASH_ReadHalfWord(uint32_t Address, uint16_t* Data); which allows user to read the internal FLASH (with out read protection)

2. implemeted device_config struct to store device configurations, e.g. magnetometer fullscale, report period, etc.

3. added demonstration code of using flash reading apis in lora_demo.c, in which the configuration sent from the cloud is stored into the internal Data EEPROM bank1, and each time when the device is booted, the configurations would be loaded from the Data EEPROM and used to initialize the application.
2020-04-03 18:21:16 +11:00
Arthur 88bfcdd333
Merge pull request #124 from DavidLin1577/patch-2
Update HAL_Device_tencentos_tiny.c
2020-03-23 10:25:16 +08:00
jiejieTop 10bbb3db8d mqttclient supports at framework and add gokit3 board demo... 2020-03-22 12:24:29 +08:00
jiejieTop 476e0dec02 the push is modified as follows:
1. delete some junk files.
2. mqttclient added comments and updated to v1.0.2.
3. update README.md.
4. update the author's own server certificate.
5. minor changes to salof.
2020-03-21 21:53:10 +08:00
David Lin 6d6b86f367
Update light_data_template_sample.c 2020-03-20 22:01:00 +08:00
David Lin 17df5b69a6
Update e53_ia1_e2e_demo_config.h
_H_TOS_FARM_AI_CONFIG_H -> _E53_IA1_E2E_DEMO_CONFIG_H_
2020-03-04 20:46:44 +08:00
Arthur 39634086a4
Merge pull request #114 from DavidLin1577/patch-1
Fixed wrong output information
2020-03-03 21:50:21 +08:00
David Lin 59df394b43
Fixed wrong output information
blind->bind
2020-03-03 20:50:40 +08:00
Arthur 01cf148965
Merge pull request #106 from DavidLin1577/patch-1
Improve readability of codes in sensor_demo
2020-02-29 12:08:07 +08:00
David Lin fbff8b8cc8
Added output information flag in nimble_mesh
The function gen_delta_set() and gen_delta_set_unack(), 
so add flag 'UNACK' to distinguish:
DELTA-SET        DELTA-SET
                    ->
DELTA-SET        DELTA-SET-UNACK
2020-02-28 22:03:00 +08:00
David Lin ced87ee22b
Improve readability of codes in sensor_demo
1.Adjust the indentation of codes in sesor_demo.c
2020-02-28 20:57:15 +08:00
David Lin 8ad4dacd14
Fixed note error in sensor_demo.h
__APP_DEMO_H__  -> __SENSOR_DEMO_H__
2020-02-28 20:52:08 +08:00
daishengdong 40f55ec57b support posix
1. posix pthread.h: pthread, pthread_barrier, pthread_cond, pthread_mutex, , pthread_rwlock, pthread_spin, etc
2. posix semaphore.h: sem_*
3. posix mqueue.h: mq_*
4. posix time.h: timer_*
5. to support posix, add tos_barrier, tos_bitmap, tos_rwlock, tos_stopwatch, change name of k_task_t from a char * pointer to a char array.
6. sample, see examples\posix
7. project, see board\TencentOS_tiny_EVB_MX_Plus\KEIL\posix
2020-02-28 00:11:28 +08:00
Arthur 9156c6b8c9
Merge pull request #103 from DavidLin1577/patch-1
Improve readability of codes in farm ai demo
2020-02-25 11:02:14 +08:00
Supowang1989 c6f45a4c2e update modbus project
update modbus project
2020-02-25 10:07:00 +08:00
David Lin ddb8268cb7
Improve readability of codes in farm ai demo
Adjust the indentation of codes.
2020-02-24 21:46:01 +08:00
Supowang1989 ef82dbfc6d add modbus slave support
add modbus slave support
2020-02-24 21:40:06 +08:00
David Lin 893d2862cb
Improve readability of codes in farm ai demo
__APP_DEMO_H__ ->__MQTT_DEMO_H__
2020-02-24 21:23:22 +08:00
David Lin dc5fd9a929
Improve readability of codes in farm ai demo
Adjust the indentation of codes.
2020-02-24 21:15:11 +08:00
Arthur 7c109831f9
Merge pull request #102 from DavidLin1577/patch-16
Improve readability of code
2020-02-22 16:46:23 +08:00
David Lin 4ecbff0845
Improve readability of code
more readable.
2020-02-21 13:13:29 +08:00
David Lin f1b698bfe7
Improve readability of code
more readability
2020-02-21 13:09:13 +08:00
jiejieTop 8f76e16646 add mqttclient to the component, and add fire stm32f429 board demo. 2020-02-20 00:12:30 +08:00
Arthur 6731d4692d
Merge pull request #99 from DavidLin1577/patch-16
Fixed enum error in light_data_template_sample.c
2020-02-18 10:40:16 +08:00
daishengdong 0d6f72a351 fix a bug of header file dependency error
1. in tos_k.h, port_config.h should go ahead of tos_cpu_types.h
2020-02-18 10:38:02 +08:00
David Lin 72042fc89c
Fixed enum error in light_data_template_sample.c
LIGHT_SWTICH_STATE_OFF -> LIGHT_SWITCH_STATE_OFF 
LIGHT_SWTICH_STATE_ON  -> LIGHT_SWITCH_STATE_ON  
(when pr, the github note:  We’ve detected the file encoding as GB18030. When you commit changes we will transcode it to UTF-8,
so some other changes cause by github, not me.)
2020-02-17 19:53:41 +08:00
David Lin 32a8a39943
Minor optimisation to the step f_sync and f_close
Moved the code 'f_sync(&file);' ahead of 'f_close(&file);'.
2020-02-16 11:08:32 +08:00
daishengdong 3ddeb9c5cd support task self delete for STM8, add a sample of shell for STM8
1. sample project, see TencentOS-tiny\board\STM8L052R8T6\IAR\shell
2. ATTENTION: read TencentOS-tiny\board\STM8L052R8T6\IAR\shell\README.md first
2020-02-15 23:22:38 +08:00
Arthur 6eb2d9fc12
Merge pull request #92 from DavidLin1577/patch-8
Fixed  wrong output info in udp_through_module
2020-02-15 20:46:06 +08:00
Arthur 1c5ced4fd3
Merge pull request #91 from DavidLin1577/patch-7
Minor optimisation to the tcp_server code
2020-02-15 20:45:45 +08:00
Arthur c97c01ab86
Merge pull request #90 from DavidLin1577/patch-6
Minor optimisation to the tcp_client code
2020-02-15 20:45:22 +08:00
daishengdong 405e5d970a support stm8
1. see: TencentOS-tiny\board\STM8L052R8T6\IAR\hello_world
2. compile/debug/run with IAR for STM8
2020-02-15 16:39:00 +08:00
David Lin 5a49fa8f93
fixed wrong output info in udp_through_module
Note that this is an udp module, 
so the output information which contained 'TCP' should be replaced with 'UDP'.
2020-02-14 22:49:17 +08:00
David Lin 25ad91e04f
Minor optimisation to the tcp_server code
This is minor optimisation to the tcp_server code:

Note that two lines, one is 'recv(%d) msg from client', the other is 'send mes error',
the second 'mes' should be 'msg', for short. The code is more readable.
2020-02-14 22:23:26 +08:00
David Lin a36cec2ff1
Minor optimisation to the tcp_client code
This is minor optimisation to the tcp_client code:

Note that two lines, one is 'send mes error', the other is 'recv msg from server', 
the first 'mes' should be 'msg', for short. The code is more readable.
2020-02-14 22:14:48 +08:00
royye62 b237852902 update mini program doc 2020-02-11 22:12:02 +08:00