Commit graph

927 commits

Author SHA1 Message Date
Fernando Governatore
c1747fb8da MQTT fix mqtt_timer_expired
If the user passes 0 as a timeout, we should not sleep(the timer has
already expired).
2017-07-03 15:50:54 -03:00
Fernando Governatore
67cd7bc031 MQTT fix mqtt_timer_left_ms
mqtt_timer_left_ms: timer->end_time is in ticks, now is in ticks, so left
is in ticks. left * portTICK_PERIOD_MS is the time left.

  With that change, the select in both mqtt_esp_read and mqtt_esp_write
seems to work as expected(with time, not ticks)
2017-07-03 15:50:54 -03:00
Ruslan V. Uss
49a0a74ae2 Merge pull request #397 from Governa/patch-1
MQTT ignores too many handlers registered
2017-06-22 01:09:45 +05:00
Fernando
ca110fa645 MQTT ignores too many handlers registered
On MQTTClient.c function mqtt_subscribe, if more than MQTT_MAX_MESSAGE_HANDLERS are registered, the variable rc receives the value of grantedQoS.

If grantedQoS = 0, and all handlers are already occupied, it goes on and returns 0 to the caller.
2017-06-19 21:31:09 -03:00
Ruslan V. Uss
abe3b8fd68 Merge pull request #390 from ourairquality/esp-open-sdk-update
travis: update the esp-open-sdk version used.
2017-06-07 14:19:24 +05:00
Our Air Quality
91e89001c3 travis: update the esp-open-sdk version used. 2017-06-07 18:36:06 +10:00
Ruslan V. Uss
ce298e1e23 Merge pull request #388 from luigifreitas/patch-1
Change xTaskCreate priority.
2017-06-06 07:39:00 +05:00
Luigi Freitas Cruz
5e3e69ba02 Change xTaskCreate priority.
Priority #1 appears not to be working. Priority #2 works just fine.
2017-06-05 19:29:04 -03:00
Ruslan V. Uss
857b8002e0 Merge pull request #382 from kanflo/httpd_fix
Fix for #381
2017-05-18 15:06:46 +05:00
Johan Kanflo
577d5e6895 Fix for #381 2017-05-16 16:12:55 +02:00
Ruslan V. Uss
c3482a8c01 Merge pull request #372 from panoti/feature/pcf8591
8-bit digital-to-analog conversion PCF8591 library
2017-05-10 03:31:55 +05:00
Ruslan V. Uss
5e04c890d1 Merge pull request #369 from UncleRus/spi_fix
Fixes unaligned writes to SPI data register
2017-04-26 17:24:35 +05:00
thanhpn
dbcb707c1c add pcf8591 lib + example 2017-04-25 23:57:40 +07:00
Michael Hamel
4b0acbe8bf Feature/mdnsresponder (#348)
Basic multicast-DNS service discovery responder
2017-04-25 19:00:09 +05:00
Ruslan V. Uss
c90362621a Merge pull request #370 from UncleRus/extras/timeout_fix
Fix for counter overflow in delays based on sdk_system_get_time()
2017-04-25 18:57:44 +05:00
thanhpn
b982a132ae add 2017-04-23 15:35:23 +07:00
UncleRus
55e08de21c Fix for counter overflow in delays based on sdk_system_get_time() 2017-04-22 00:55:41 +05:00
UncleRus
852ed2f1ad Fixes unaligned writes to SPI data register 2017-04-20 01:49:46 +05:00
andree182
b3f658bdbf bh1750 i2c light sensor driver + pwm cleanup (#330)
Add bh1750 (I2C light sensor) driver + usage example
2017-04-01 05:20:37 +05:00
UncleRus
31ef50c9a9 Revert SPI memcpy() 2017-03-22 10:50:54 +05:00
sheinz
a91ec6eb61 sysparam fixes, tests, spi flash refactoring (#299)
Original work by @ourairquality
* Sysparam threadsafe and SPI access
* Sysparam test cases
* Fix for negative int8
* Sysparam getting bool without memory allocation. Bool tests.
* SPI flash refactoring.
* Extract common spiflash.c into core.
* Use spiflash.c in sysparam.
* Use memcpy in spiflash.c insted of hand-written version.
* Tests for spiflash.c
2017-03-22 02:18:04 +05:00
UncleRus
07ca0d2e9e Update I2C README 2017-03-22 02:14:06 +05:00
Ruslan V. Uss
67a0cfbf8e Merge pull request #356 from bschwind/tsl4531
Add a TSL4531 driver and example
2017-03-22 00:09:18 +05:00
Brian Schwind
8b5ee93b55 Add a TSL4531 driver and example 2017-03-22 01:36:30 +09:00
Zaltora
813477aa8a I2c optimization and features (#321)
* custom delay
* Update comment
* add bus control status, add some missing include & fixed display output on sh1104 (#319)
* add some missing include
* Fixed display on SH1106
* Fix comment, add force sytem, rework flag, 16 bits data transfert
* Update all library with new I2C API
* custom delay
* Update comment, add bus control status
* fix i2c read + fix ds3231 temp + fix ssd1306 send
2017-03-21 11:41:47 +05:00
Ruslan V. Uss
1575bac0c7 Merge pull request #355 from andrewclink/export_rtos_hooks
Give FreeRTOS Hooks weak linkage
2017-03-21 01:50:58 +05:00
Andrew Clink
03597d9162 Make FreeRTOS hooks weak; Add example 2017-03-20 12:56:17 -07:00
Ruslan V. Uss
32328713f5 Merge pull request #353 from UncleRus/fatfs_r12c
Update FatFS to R0.12c
2017-03-16 01:26:02 +05:00
UncleRus
9300729533 FatFS update to R0.12c 2017-03-15 21:08:44 +05:00
Ruslan V. Uss
1457a3ed19 Fixed error of writing to SPI registers with memcpy (#352)
fixed memcpy() writing registers bug
2017-03-15 18:18:32 +05:00
Ruslan V. Uss
20674f8470 Merge pull request #350 from funnydog/sntp-fix
extras/sntp: fix an off-by-one bug in sntp_set_servers()
2017-03-15 10:58:28 +06:00
funnydog
65a0c95b13 extras/sntp: fix an off-by-one bug in sntp_set_servers()
The function sntp_set_servers() duplicates the strings supplied in the
server_url[] array into new strings but forgets to allocate the extra
byte needed for the \0 terminator for each string.

Fix the problem by using strdup(), which allocates the right amount of
memory and copies the string at once.
2017-03-14 20:32:51 +01:00
mr-nice
6b0547b963 Softuart (#307)
* extras/softuart: support for multiple UARTs, dynamic RX/TX pins
2017-03-06 23:28:20 +06:00
Zaltora
fda5d0b942 Crc fix and update (#347)
Update crc example API and config.
2017-02-27 22:35:56 +06:00
Zaltora
f51a2109b1 CRC library (#339)
* Crc initial example
* Update example and fix submodule
2017-02-22 01:44:03 +06:00
Ruslan V. Uss
eb5fa3d405 Merge pull request #343 from kanflo/sdk_system_get_netif
Added sdk_system_get_netif
2017-02-21 22:30:33 +06:00
Johan Kanflo
c415d49f1e Added sdk_system_get_netif 2017-02-20 20:27:24 +01:00
Milosch Meriac
398ed46776 Add BearSSL extra (#340)
Add BearSSL extra + http_get example, TLS server example
2017-02-15 17:44:11 +06:00
Ruslan V. Uss
54ce6bbe1c Merge pull request #337 from UncleRus/extras/max7219
MAX7219/MAX7221 dirver + example
2017-02-12 01:51:37 +06:00
UncleRus
87b4befd87 MAX7219/MAX7221 dirver + example 2017-02-09 03:31:51 +05:00
Ruslan V. Uss
c21f70366f Merge pull request #334 from lujji/master
httpd: support for large WebSocket frames
2017-02-03 11:31:13 +06:00
lujji
3b5397f2a4 added support for large WebSocket frames 2017-02-03 07:33:27 +00:00
lujji
bce2139f06 added WebSockets (#331) 2017-02-02 12:17:53 +06:00
lujji
f64935eb1d HTTP server (#324)
extras/httpd and http_server example
2017-01-27 14:38:01 +06:00
Tuan PM
ebfbc1144c Process recursive folder for spiffs images (#320)
* Process rercursive folder for spiffs images

* Flat file name from the directory structure

* change method to find '/' as the suggestion of @sheinz

* remove unused variable
2017-01-12 14:57:50 +02:00
Tuan PM
2b915c11c7 add some missing include & fixed display output on sh1104 (#319)
* add some missing include

* Fixed display on SH1106
2017-01-03 00:40:54 +02:00
Zaltora
5eae1664e5 Ina3221 (#318)
INA3221 driver + example
2016-12-29 19:45:25 +05:00
Zaltora
14c8ff57ca SPI3 support ssd1306 (#309)
SPI3 support, SH1106 port
2016-12-29 19:42:43 +05:00
Ruslan V. Uss
0b063730f3 Merge pull request #317 from UncleRus/fix_ms5611
Code style fixes for MS5611
2016-12-24 22:28:14 +05:00
UncleRus
b675ae6f29 Code style fixes for MS5611 2016-12-24 22:26:48 +05:00