- 16 May, 2017 4 commits
-
-
Simon Duquennoy authored
-
Simon Duquennoy authored
-
Simon Duquennoy authored
-
Simon Duquennoy authored
-
- 14 May, 2017 1 commit
-
-
Simon Duquennoy authored
-
- 13 May, 2017 19 commits
-
-
Peter Sjödin authored
-
Robert Olsson authored
modified: apps/mqtt/mqtt.h
-
Peter authored
1. The PT_MQTT_WAIT_SEND() macro has several issues: - It does not check the return value from process_post(), which sometimes returns an error code. See next issue. - Each time the macro is called, is posts an event to itself. The idea seems to be that the event should be absorbed by the macro itself, so when the macro terminates there is NOT a net growth of the event queue. This does not work. The reason is that the PROCESS_WAIT_EVENT() sometimes absorbs a broadcast event instead of its own event, and then the number of events in the event queue increases. This leads to event explosions and overflow in the event queue. - The macro cannot call PT_EXIT(). This will expand to a return statement, causing a return from the function calling the macro (mqtt_process), rather then exiting the protothread (which was probably the intention). Protothreads have lexical scope... Fixes: 1) Check return value from process_post() 2) Loop until the event posted to itself is absorbed (rather than just absorbing the next event) 3) Replace PT_EXIT() with PT_INIT() (doesn't really make a difference, could probably just be removed). 2. Change order of the checks in the protothread-calling loops in mqtt_process(). Reason: When a protothread has been cleared by PT_MQTT_WAIT_SEND(), it will not return a value, so checking against PT_EXITED does not make sense. 3. PT_MQTT_WRITE_BYTES() should initialize conn->out_write_pos to 0. When PT_MQTT_WRITE_BYTES() does not finish (due to TCP disconnect for instance), it may leave conn->out_write_pos with a non-zero value. Next time PT_MQTT_WRITE_BYTES() is called, it will take data from the wrong place. 4. Put MQTT_CONN_STATE_ABORT_IMMEDIATE before MQTT_CONN_STATE_NOT_CONNECTED in the enum list, so that the check if(conn->state > MQTT_CONN_STATE_NOT_CONNECTED) in mqtt_connect() fails when in state MQTT_CONN_STATE_ABORT_IMMEDIATE. Otherwise, it will deadlock and not reattempt connections while in this state.
-
George Oikonomou authored
This commit changes the logic of `get_cca_info()` in the CC26xx IEEE mode driver. We now use the command's return status bits to determine whether the radio's CCA monitoring function has concluded, instead of drawing conclusions based on RSSI readings.
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
Many of those doxygen blocks are now applicable to both sensortags, with only a couple of them being different between the CC1350 and CC2650 tags
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
The CC13xx PROP mode TX power table can differ between boards as well as across frequency bands. This commit provides defaults for all bands and allows the board to override.
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
George Oikonomou authored
-
- 24 Apr, 2017 1 commit
-
-
George Oikonomou authored
Use TI-Provided CC13xx/CC26xx RF API
-
- 21 Apr, 2017 2 commits
-
-
Nicolas Tsiftes authored
Keep CoAP 'observe' option length <= 3 bytes
-
Nicolas Tsiftes authored
Fix several uninitialized variables
-
- 19 Apr, 2017 1 commit
-
-
Bernhard Hackl authored
-
- 18 Apr, 2017 3 commits
-
-
Nicolas Tsiftes authored
Fix potentially unterminated strings
-
Nicolas Tsiftes authored
RPL: fix a bug accessing an uninitialized pointer
-
Nicolas Tsiftes authored
native-border-router: fix for disappearing timer 'uip_ds6_timer_perio…
-
- 14 Apr, 2017 1 commit
-
-
Bernhard Hackl authored
-
- 10 Apr, 2017 2 commits
-
-
Oliver Schmidt authored
Adjusted cc65 compiler options to recent cc65 option handling change.
-
Oliver Schmidt authored
-
- 08 Apr, 2017 2 commits
-
-
Atis Elsts authored
-
George Oikonomou authored
Fix HDC sensor reading conversion
-
- 06 Apr, 2017 1 commit
-
-
Nicolas Tsiftes authored
Updating TSCH readme file
-
- 05 Apr, 2017 1 commit
-
-
Atis Elsts authored
-
- 04 Apr, 2017 2 commits
-
-
Simon Duquennoy authored
-
Simon Duquennoy authored
-