Commit Graph

84 Commits

Author SHA1 Message Date
Olivier
d6525d4c2e MySensors Diagnostics (#1333)
* MySensors Diagnostics

* Fix Cppcheck issues

* Fix formatting in PrintHex8 function
2026-02-07 15:11:27 +01:00
Olivier
8eea242512 Prepare 2.4.0 release (#1587) 2026-01-01 11:36:35 +01:00
Olivier
96c4df79e8 Unify STM32 implementation, remove legacy STM32F1 (#1579)
* Unify STM32 implementation, remove legacy STM32F1

* Add build stage for STM32F4 examples

* Apply restyling patch

* Update fqbn for STM32F1 and STM32F4 builds

* Update fqbn parameters for STM32F1 and STM32F4 builds

* Update fqbn for STM32F1 to use BLUEPILL_F103C8

* Add STM32F4 build stages to pipeline

* Fix condition for setting build status on failure
2025-11-23 14:13:11 +01:00
Olivier
0b94c2dc1a Update comments (#1574) 2025-11-17 17:29:49 +02:00
lyuboasenov
8d45e7bad7 Add support for ATtiny 3224/7 (#1535)
* Add hal for megaAvrs

* Add mcu selector setting

* Register hal

* Pull up pins to save power

* Remove dead code

* Add before/after sleep delegates

* Remove pin turn stable state setting

* Make hardware messages mysensors alike

* Enable route size reduction for devices with smaller eeprom

* Add macro for routes size to keywords

* Fix keyworkds.txt - using tabs instead of spaces

* Remove tinyAVR hardware debugging

* Remove unused macros

* Remove .history folder

* Fix formatting according to astyle

* Remove unused count variable

* Update MyTransportHAL.cpp

---------

Co-authored-by: Olivier <tekka007@users.noreply.github.com>
2023-10-12 08:47:53 +02:00
Paolo Rendano
aa520cea83 Switch WaterPulseSensor example to m3/h (#1541) 2023-02-08 13:40:35 +01:00
Paolo Rendano
bf79d13c19 WaterPulseSensor example improvements (#1540) 2023-01-27 23:14:11 +01:00
Olivier
253109d3ff Upate CI and HW defs (#1530) 2022-07-24 10:55:35 +02:00
Virtual Maker
6e4206b0f0 Simplify MyMainESP8266 for core 3.0.x (#1496) (#1524)
and replace ICACHE_RAM_ATTR by IRAM_ATTR
2022-07-08 15:04:50 +02:00
Tico06
97a70a1407 New TLS implementation (#1520)
* New TLS implementation

Implement TLS to mqtt server thanks to WiFiClientSecure class

* New TLS implementation

Implement TLS to mqtt server thanks to WiFiClientSecure class

* New TLS implementation

Implement TLS to mqtt server thanks to WiFiClientSecure class

* New TLS implementation

Implement TLS to mqtt server thanks to WiFiClientSecure class

* Update MyConfig.h

Typo

* Update GatewayESP8266SecureMQTTClient.ino

Typo

* MyGatewayTransportMQTTClient.cpp updated

Move tls settings to bool gatewayTransportInit(void)

* MySensors code styling applied by GIT

* Try to fix Doxygen warnings

* Doxygen warnings fixed hopefuly

* MY_GATEWAY_ESP8266_SECURE doc added

* MY_GATEWAY_ESP8266_SECURE doc completed

* Avoid platform cross compiling

* Replaced spaces indent by tabs

* Multilines comments to /*
2022-07-08 10:16:03 +02:00
Olivier
2e00bf6a10 Add PJON transport layer (#1278)
* Add PJON transport layer

* Update PJON 13.0

* PJON transport now non-blocking, fixed polling

Co-authored-by: Giovanni Blu Mitolo <gioscarab@gmail.com>
2021-03-20 10:26:12 +01:00
Mikael Falkvidd
65f9465cec Add internal battery measurement example (#1470)
* Add internal battery measurement example

* Use existing hwCPUVoltage()

* Make debug output prettier
2021-02-22 20:57:35 +01:00
Olivier
15f5c5e793 CI: Update CppCheck 2.1 (#1440) 2020-08-21 19:41:32 +02:00
Mikael Falkvidd
d04e751387 Remove unnecessary MY_IP_RENEWAL_INTERVAL* (#1429)
* Remove unnecessary MY_IP_RENEWAL_INTERVAL*

Ethernet.maintain already checks when we need to renew, based on
the lease time given by the DHCP server.

https://www.arduino.cc/en/Reference/EthernetMaintain recommends
"just call it on every loop() invocation" so there is no
need for us to keep a separate timer.

* Remove call to _w5100_spi_en

This function doesn't enable SPI, so it should not
disable it either. Let calling functions handle SPI
enable/disable.
2020-06-24 08:18:50 +02:00
Mikael Falkvidd
6059d84c1c Clarify MAC address requirements (#1427) 2020-06-03 17:38:01 +02:00
Michiel van der Wulp
7a24f103d1 Update DimmableLEDActuator.ino (#1395)
Thanks @mvdw !
2020-03-17 22:21:52 +01:00
Olivier
636815b88e Fix missing define (#1392) 2020-02-26 15:18:37 +01:00
Olivier
dd91aeb9c3 Library & CI maintenance (#1394) 2020-02-26 12:28:37 +01:00
Olivier
18fee01db3 ESP32/ESP8266: place ISR in IRAM (#1348) 2019-09-24 10:24:26 +02:00
Mikael Falkvidd
896220bdba Revert the revert 1306 energy meter pulse sensor itslav (#1313)
* Add support for less than 1 blink per hour

* Apply Arduino IDE auto-formatting (readability++)

* Minor spelling/grammar fixes

* Fix copyright date regression
2019-07-20 16:28:06 +02:00
Olivier
40f4deb18c Code maintenance (#1309)
* Fix issues after CPPcheck 1.88 update

* Code maintenance
2019-07-20 14:08:33 +02:00
Olivier
529485c9fa Revert "Energy meter pulse sensor itslav (#1306)" (#1310)
This reverts commit 8257d0f30c.
2019-07-17 20:56:40 +02:00
Mikael Falkvidd
8257d0f30c Energy meter pulse sensor itslav (#1306)
* Add support for less than 1 blink per hour. Thanks to it-slav. See https://forum.mysensors.org/post/100125
* Apply Arduino IDE auto-formatting (readability++)
* Minor spelling/grammar fixes
2019-07-17 20:18:40 +02:00
Olivier
36ec4f8624 Fix issues after CPPcheck 1.88 update (#1308) 2019-07-14 21:17:24 +02:00
Mikael Falkvidd
f36c4ae130 Rename "soft ack" to echo (#1292)
* Rename "soft ack" to echo

The ack parameter is often confused with what might be called
"hardware ack"
(see https://forum.mysensors.org/post/34263 for one of many
lengthy discussions)

This change should make it harder to confuse echo with the
hardware ack, and reflects more accurately what will actually
happen.

This fixes https://github.com/mysensors/MySensors/issues/1103

I hope I have found all places where the naming needs to be
changed, and that I haven't inadvertently renamed any of the
*real* ack stuff.

Thanks to @tekka007 for reviewing the changes
and catching my mistakes.
2019-06-06 09:00:14 +02:00
tekka
d3b3a1ca8e Fix UDP transport and update GW examples (#1262) 2019-01-27 22:24:45 +01:00
tekka
71b06987ab Code maintenance (#1261) 2019-01-27 20:58:06 +01:00
tekka
5a7f3a4fae Add GatewayESP32OTA example (#1216) 2018-10-21 13:10:07 +02:00
tekka
6ffe29cb5f Code maintenance (#1186) 2018-08-22 20:50:16 +02:00
tekka
2e406f5135 Introduce CryptoHAL, optimize crypto functions (#1178) 2018-08-21 19:30:11 +02:00
tekka
831e0e8cd2 Direct node2node traffic (#1174) 2018-08-21 19:20:06 +02:00
Mikael Falkvidd
0b9af6d713 Update cast in msg.set (#1130)
A while ago, MySensors changed to use int32_t
instead of long int (and similar for other data
types). This change was not applied to all examples,
causing some examples to fail compilation for
ESP8266 with the following message:

call of overloaded 'set(long int)' is ambiguous

This update changes the casts to match the new style.
This fixes
https://github.com/mysensors/MySensors/issues/1129
Thanks to https://github.com/henfri for reporting.
2018-05-14 21:32:11 +02:00
Marco Bakera
f5ed26c778 Fixed some minor typos in comments (#1082)
* Fixed typo in the username
2018-05-06 20:22:56 +02:00
flopp999
6c9be97fa3 Word corrections (#1114)
* Word corrections
* Removed an enter
Thanks @flopp999 !
2018-05-01 16:57:37 +02:00
tekka
bb7766197c Consolidate WiFi defines (#1110)
Great work @tekka007
2018-05-01 16:54:43 +02:00
Mikael Falkvidd
f2d9f72cf4 Fix spelling mistakes (#1104) 2018-04-09 23:31:50 +02:00
tekka
eaf1b9452b ESP32: Support HW (#865)
This fixes https://github.com/mysensors/MySensors/issues/968
2018-04-07 14:46:01 +02:00
Mikael Falkvidd
d1aa419efe Remove faulty wiring instructions from ESP gateways (#1100)
This fixes
https://github.com/mysensors/MySensors/issues/1096

https://www.mysensors.org/build/connect_radio
has been updated to include GPIOn instructions
(in addition to the existing Dn instructions).

Thanks to RWoerz for reporting this discrepancy.

Also, the "barebone" boot wiring has been moved to
http://bit.do/stupidurl
2018-04-07 10:42:52 +02:00
thucar
4d90c00f98 MY_GATEWAY_TINYGSM support. GSM gateway using a modem module (#1097)
Added TinyGSM driver and GatewayGSMMQTTClient example
2018-04-04 16:40:11 +02:00
tekka
c805f77f20 AVR: Fix OTA logging (#1074) 2018-03-01 20:27:07 +01:00
d00616
fe42dbdcca Nvm fota (#1018)
* New Firmware OTA for NVM/mcuboot (nRF5)

- Support for mcuboot (nRF5)
- Support for run length encoded data
- Support for smaller FIRMWARE_BLOCK_SIZE, if required

* Update NVM

* New MY_LOCK_MCU for NRF5

* Test with Sensebender GW + Sensebender Micro was successful
2018-02-28 20:03:34 +01:00
Mikael Falkvidd
599c0bada6 ESP8266 Gateway examples: clarify inclusion pin (#1065)
The comment for inclusion mode pin and the definition of
MY_INCLUSION_MODE_BUTTON_PIN did not match.

GPIO5 should be safe to use, while GPIO3 is used for the
UART which might result in conflict.

This fixes
https://github.com/mysensors/MySensors/issues/993
2018-02-22 12:04:03 +01:00
tekka
b51981ab3d Fix MY_CORE_ONLY: Initialize HW (#1070) 2018-02-20 12:32:03 +01:00
Kartik Arora
14d8accf37 Add URL option for MQTT broker in example sketch (#1033) 2018-01-30 21:04:37 +01:00
Mikael Falkvidd
06269dd949 Fix cppcheck issues (#1036)
Fixes the following cppcheck issues:
examples/SecretKnockSensor/SecretKnockSensor.ino
305	variableScope	398	style
The scope of the variable 'timeDiff' can be reduced.

examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino
127	variableScope	398	style
The scope of the variable 'led_state' can be reduced.
2018-01-28 09:31:19 +01:00
tekka
a9c49f0210 Harmonize debug outputs (#1002) 2017-12-05 04:03:39 +01:00
Mikael Falkvidd
506d23581d Update RelayActuator example (#973)
Based on feedback from skywatch,
https://forum.mysensors.org/post/78896

We'll need to update the wiring instructions on
https://www.mysensors.org/build/relay as well.
2017-11-17 21:18:15 +01:00
Olivier
5164af7edc ESP8266: Fix example compilation error (#932) 2017-09-19 22:48:54 +02:00
d00616
8412a3d360 New OTA debugging and logging feature (#913) (#913) 2017-09-18 20:58:44 +02:00
d00616
1cd2c6df05 Update radio defines in examples (#901) 2017-07-31 18:37:01 +02:00