Commit Graph
199 Commits
Author SHA1 Message Date
Gijs Noorlander 37538f4124 [Build Size] Replace all TXBuffer += calls where possible
The TXBuffer is a "header only" implementation.
This means it may be compiled "inline" and thus takes quite a bit of compiled code.
This makes the binary larger and slows the ESP down.

Now it is even possible to make core 2.6.3 builds using "minimal OTA".
The "Dev" build is roughly 55k smaller.
2020-02-28 02:28:03 +01:00
Gijs Noorlander bec65282de [Cron] Fix memory leak 2020-02-27 19:19:25 +01:00
Gijs Noorlander 5160703d58 Update Adafruit library for SGP30 sensor 2020-02-22 15:56:26 +01:00
Gijs Noorlander 664430cfd2 Sync ESPEasySerial library + increase version to 1.0.14 2020-02-21 16:58:01 +01:00
TD-er fe4228b2ff Merge branch 'mega' into bugfix/rn2483_blocking 2020-02-21 16:30:03 +01:00
Gijs Noorlander c83c1d7bc4 [RN2483] Quick work-around to force SW serial for LoRa module
As is needed for a PCB I am working on, where I use the pins of Serial0_switched but also need the Serial0 to be HW serial.
2020-02-21 15:04:41 +01:00
TD-er 15c0c2d9df Merge pull request #2887 from ToniA/HeatpumpIR
P088_HeatpumpIR to use HeatpumpIRFactory (#2884)
2020-02-21 13:26:52 +01:00
Gijs Noorlander ebd0dcf7c2 [RN2483] Add some example code for new RN2483 library
Since I have rewritten the entire library, I may also add some short example code to illustrate the new async features.
2020-02-17 23:28:24 +01:00
TD-er 473d832186 [RN2483] Small fixes in display strings and library examples 2020-02-17 01:11:08 +01:00
TD-er 6d321b256c Fix compile issue in ArduinoUnoNano-downlink.ino example 2020-02-16 19:53:13 +01:00
TD-er 64fea7bcf2 [RN2483] Fix build issues 2020-02-16 18:50:44 +01:00
Gijs Noorlander b3ec99c2c3 [RN2483] Move functions and members to helper class. 2020-02-16 17:13:04 +01:00
Gijs Noorlander 96dc568800 [RN2483] Status bits depend on firmware rev. number
This means some knowledge should be split into separate classes and made available for the Status class.
2020-02-16 15:04:28 +01:00
Gijs Noorlander 3c5e9389fa [RN2483] Make OTAA join work async
It does take about 7 seconds to perform OTAA, so make sure we don't have to wait for it to finish now we can do all in async mode.
2020-02-16 02:02:34 +01:00
Gijs Noorlander 24b6364d08 [RN2483] Fix OTAA and ABP join issues 2020-02-16 00:38:24 +01:00
Toni aba69b7235 P088_HeatpumpIR to use HeatpumpIRFactory (#2884)
* HeatpumpIR library update to 1.0.12
2020-02-15 14:52:52 +02:00
Gijs Noorlander af5bc7174c [RN2483] Make calls non blocking using state machine
The calls to the existing library were blocking, so they could take a long time to send a message (over 2 seconds)
Now the library is using a state machine and the handling can be dealt with by calling the ...loop functions frequently.
2020-02-13 18:30:22 +01:00
Gijs Noorlander 632169acc3 [RN2483] Fix proper reset and autobaud of RN2483 LoRa module 2020-02-10 21:50:05 +01:00
TD-er a6031ce6d6 Merge pull request #2876 from ToniA/HeatpumpIR
HeatpumpIR 1.0.11 update, P088_HeatpumpIR support for Mitsubishi MSC …
2020-02-10 11:25:19 +01:00
Toni 5f0b4f0d6f HeatpumpIR 1.0.11 update, P088_HeatpumpIR support for Mitsubishi MSC and Mitsubishi Heavy FDTC 2020-02-05 18:58:50 +02:00
jimmys01 3968f06b1c Ir-Update 2020-02-01 16:27:52 +02:00
Gijs Noorlander 8d5b44ca1c [MQTT] Fix change in client.connected() behavior for pubsubclient
See this issue where the changes in behavior for wificlient.connected() is discussed: https://github.com/esp8266/Arduino/issues/6701

A change dating back to April 2018 ( https://github.com/esp8266/Arduino/pull/4626 ) does have some implications on how to interpret the client.connected() result.
It is very well possible there is still data in the buffers waiting to be read.
So the loop() function of pubsubclient should first try to empty the received data and then decide what to do with the connected state.

So reading is fine, if there is data available, but writing needs an extra check.
2019-12-10 10:11:14 +01:00
Florin 8b0c8a16bd Clean Warning messages inside external libraries: AS_BH1750 & Adafruit 2019-11-19 20:48:55 -05:00
Gijs Noorlander bb688514d1 [pubSubClient] Fix signed/unsigned compare warning 2019-11-13 13:15:29 +01:00
TD-er eddc6924c6 [pubsubclient] Fix bug in publish
Change I made which was incorrect.
As spotted here: https://github.com/letscontrolit/ESPEasy/pull/2728#issuecomment-552925267
2019-11-13 13:07:00 +01:00
TD-er 3c31a30af9 [MQTT] Improve update MQTT client connected status
Checking the MQTT connected status can alter connected status, so update connected status when it could have changed.
2019-11-13 13:07:00 +01:00
TD-er e25ff7410b [PubSubClient] Only update lastOutActivity when write is successful 2019-11-13 13:07:00 +01:00
TD-er 59c6445eea [PubSubClient] Fix check for domain string 2019-11-13 13:07:00 +01:00
jimmys01 b439ddd7e0 [IR] Updated library reduces memory consumption 2019-11-12 10:19:30 +02:00
jimmys01 1625dd353a Update IR library 2019-10-26 13:48:11 +03:00
jimmys01 f706007933 [IR] Update IR lib 2019-10-11 12:44:50 +03:00
jimmys01 6729424d74 Merge remote-tracking branch 'upstream/mega' into ir_updates 2019-09-28 11:33:37 +03:00
Gijs Noorlander fe66e9ca59 Merge pull request #2625 from workgroupengineering/maintenance/lib/ccronexpr
Update ccronexpr library to v20190415
2019-09-28 00:08:13 +02:00
jimmys01 3789ae9c37 [IR] Update lib to 2.6.6 2019-09-26 12:38:36 +03:00
Gijs Noorlander b410fc7bc1 Split Diagnostic.h & ESPEasyWiFiEvent.h into .h/.cpp 2019-09-25 00:46:04 +02:00
Saverio Cisternino 2308f7b49c Update ccronexpr library to v20190415 2019-09-20 17:42:01 +02:00
Hans-Rune Bue 684ae2e8db Support for MITSUBISHI KJ heatpumps (SG 161 0927 remote)
Added support for MITSUBISHI KJ series heatpumps / remote control type SG161.
Also added a IR_DEBUG_PACKET define to be able to feedback and debug the IR packet as added text output to a browser, curl or other http request tool.
2019-09-12 21:48:22 +02:00
jimmys01 6009de4c4d [IR} Update the IR library 2019-09-09 13:30:28 +03:00
jimmys01 0e054ea2af IR Update library and usage instructions 2019-08-26 14:06:23 +03:00
Gijs Noorlander ee4a6a63b3 Merge pull request #2543 from TD-er/plugin/HeatpumpIR
New Plugin: Heatpump IR (from Playground P115)
2019-08-22 23:54:46 +02:00
Gijs Noorlander 77b39b748c [LoRa/TTN] Output packed raw format for uploading to TTN
This does allow uploading even more parameters than the 4 supported by ESPeasy, since encoder and decoder can be tailored to the specific plugin.
For example the GPS plugin can now upload 7 parameters in only 20 bytes.

Still to do: Why can the decoder not handle encoding per 24 bit? (lat/lon do fit perfectly fine in 24 bit).
2019-08-15 02:12:13 +02:00
Gijs Noorlander 915cadf0a8 [LoRa/TTN] Reduce number of join requests
Assume module is joined. If not, a TX attempt will return "not_joined" after which a join should be attempted.
2019-08-14 17:07:16 +02:00
Toni d0734e678b Fix compile warnings in HeatpumpIR plugin 2019-08-13 11:35:35 +02:00
Toni b2214f0848 Add HeatpumpIR 1.0.9 library 2019-08-12 23:30:30 +02:00
Gijs Noorlander 16bcd6220d [LoRa TTN] Make settings configurable & add support ABP 2019-08-12 21:07:48 +02:00
Gijs Noorlander 472d004fdd [Encoder] ICACHE_RAM_ATTR added for encoder plugin
Fixes #2492
2019-08-10 22:45:00 +02:00
Gijs Noorlander 5e9be55656 [RN2384 lib] Only use const String& in function parameters
Making these functions a lot more memory efficient
2019-08-08 23:14:34 +02:00
TD-er 39f8d405b0 Improve RN2xx3 LoRo TTN library 2019-08-08 23:14:34 +02:00
Gijs Noorlander c88bf664af [TTN] Add RN2483-Arduino-Library 2019-08-08 23:14:34 +02:00
Gijs Noorlander 4420c253c3 [ESPeasy Serial] Update to 1.0.12 to allow invalid pin config 2019-08-06 17:09:25 +02:00