Commit Graph

112 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
pixel::doc
0af72015da Update MyConfig.h (#1554)
URL for allowed (German) Channel updated.
2023-10-20 20:58:54 +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
Olivier
64fcecee46 Fix Jenkins warnings (#1548)
* Added support for ASR650x and SX126x

* Added support for ASR650x and SX126x

* Fix jenkins warnings

---------

Co-authored-by: Eduard Iten <eduard@iten.pro>
2023-06-17 14:40:41 +02:00
Nik Collins
94fa567c97 Fix nrf5-esb-mode default (#1473) 2022-09-04 09:15:14 +02:00
Olivier
253109d3ff Upate CI and HW defs (#1530) 2022-07-24 10:55:35 +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
Nik Collins
ce21a30100 NRF5: Add nrf52805 support (#1461)
* Exclude cache for NRF52805
* Check and handle unsupported modulation rates
* Make PPI channel selection dynamic, based chip specific channel count
2021-01-10 14:57:23 +01: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
347ca0a43a Update docs (#1428)
* Clarify that MY_HOSTNAME is only supported on ESP

And remove redundant Doxygen define, that caused MY_HOSTNAME
to show up twice in the documentation.

* Fix double define of MY_RAM_ROUTING_TABLE_ENABLED

MY_RAM_ROUTING_TABLE_ENABLED showed up twice in the docs.
By reordering, the define only shows up once.

I don't think DOXYGEN will be defined when anyone builds their
sketches, so this change should not affect functionality.

* Doxygen: Add check for multiple defines of same keyword

* Fix unmatched ifdef

* Add documentation for config struct for Linux gw

This avoids the following doxygen warning:
warning: Compound config is not documented.
2020-06-06 09:45:13 +02:00
Sinisha Djukic
3308df3a13 Add sleep handler to optimize low-power sleep (#1418)
* Add sleep handler to optimize low-power sleep

* Add sleep handler to optimize low-power sleep

Committer: Sinisha Djukic <s.djukic@gmail.com>

Author:    Sinisha Djukic <s.djukic@gmail.com>
Date:      Wed May 13 08:51:48 2020 +0300
Committer: Sinisha Djukic <s.djukic@gmail.com>
	modified:   MyConfig.h
	modified:   core/MySensorsCore.cpp
	modified:   core/MySensorsCore.h
	modified:   keywords.txt

* Whitespace fixed

* Fixed compiler warning

Committer: Sinisha Djukic <s.djukic@gmail.com>
Author: Sinisha Djukic <s.djukic@gmail.com>

Co-authored-by: Djukic Sinisha (INST/RBR2-BG INST/ESU) <djs1wa3@bosch.com>
2020-05-13 22:49:38 +02:00
Alfredo
869d6d2aa0 Added support for MQTT over SSL/TLS (#1387)
* Added support for MQTT over SSL/TLS

* Added documentation on new parameters
2020-02-26 21:55:32 +01:00
Olivier
dd91aeb9c3 Library & CI maintenance (#1394) 2020-02-26 12:28:37 +01:00
ltigges
b7bed69113 Add MY_RS485_DE_INVERSE define to invert the device enable pin polarity (#1358)
* Add MY_RS485_DE_INVERSE define to invert the device enable pin polarity
2019-11-06 11:34:43 +01:00
Mikael Falkvidd
baf4867822 Clarify MY_DEBUG_OTA define (#1331)
This fixes https://github.com/mysensors/MySensors/issues/1330
2019-08-01 19:58:32 +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
36ec4f8624 Fix issues after CPPcheck 1.88 update (#1308) 2019-07-14 21:17:24 +02:00
Mikael Falkvidd
8dd893c5ad Add info on ESP32, STM32, nRF5 and SoftSPI (#1307)
This should fix
https://github.com/mysensors/MySensors/issues/1128
2019-07-13 14:21:42 +02:00
Olivier
a5f40073fb Update CI and SAMD board defs (#1302) 2019-06-20 10:46:20 +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
Mikael Falkvidd
cdfd8d7c21 Document esp8266 limitation for MY_RX_MESSAGE_BUFFER_FEATURE (#1296)
This fixes
https://github.com/mysensors/MySensors/issues/1128
2019-05-30 22:12:34 +02:00
Mikael Falkvidd
f027115308 Rename RadioSettingGrpPub to TransportSettingGrpPub (#1295)
https://www.mysensors.org/apidocs/group__RadioSettingGrpPub.html
had the headline "Radio selection". In MySensors lingo, we
probably mean "Transport selection", especially since RS485 is
included but does not use radio.

By renaming the group and the text, it might become easier for
users to understand which different transports are supported
by MySensors.

This fixes https://github.com/mysensors/MySensors/issues/1272
2019-05-30 21:57:28 +02:00
Olivier
1fa4728f61 Transport and crypto HAL update (#1282) 2019-04-28 14:22:25 +02:00
Olivier
a1282f358a Code maintenance (#1279)
* Code maintenance

* Code maintenance
2019-04-20 16:22:12 +02:00
tekka
767a447184 Code maintenance (#1264) 2019-02-03 21:35:17 +01:00
tekka
1aa20cd208 Cleanup: Remove RFM69 listenmode references (#1263) 2019-01-27 23:42:35 +01:00
tekka
71b06987ab Code maintenance (#1261) 2019-01-27 20:58:06 +01:00
tekka
98355b2d0b Maintenance: ethernet and MQTT code (#1250) 2019-01-06 18:14:10 +01:00
tekka
8e8f44b402 Code updates & harmonization (#1201) 2018-10-21 16:55:24 +02:00
tekka
6ffe29cb5f Code maintenance (#1186) 2018-08-22 20:50:16 +02:00
Jeeva Kandasamy
c8d951d3df Update #1184, RFM69 frequency band support for India (#1185) 2018-08-21 19:31:10 +02:00
Marcelo Aquino
b84cd6ac4e Linux: Add rfm95 configure options (#1135) 2018-06-16 19:19:32 +02:00
Patrick Fallberg
bbaa9399d6 Add software AES encryption to RFM95 transport HAL (#1054)
Also clean up capabilities flags a bit and fix test-sketch
for rfm95 to use proper encryption flag.
2018-05-30 00:09:24 +02:00
tekka
bb7766197c Consolidate WiFi defines (#1110)
Great work @tekka007
2018-05-01 16:54:43 +02:00
Mikael Falkvidd
e0988e6d9e Add more missing keywords (#1111)
This fixes
https://github.com/mysensors/MySensors/issues/1089
and also adds Doxygen and syntax highlighting
for the following keywords:
MY_GATEWAY_MQTT_CLIENT
MY_GATEWAY_SERIAL
MY_IP_GATEWAY_ADDRESS
MY_IP_SUBNET_ADDRESS
MY_MQTT_CLIENT_ID
MY_MQTT_PUBLISH_TOPIC_PREFIX
MY_MQTT_SUBSCRIBE_TOPIC_PREFIX
2018-04-10 20:22:39 +02:00
Mikael Falkvidd
a8429868e7 Clarify default defines (#1106)
Moved example values after the @brief portion of Doxygen,
so the default (empty/undefined) values are visible
in Doxygen.
2018-04-10 14:58:11 +02:00
Mikael Falkvidd
df1bb7fcc5 Add Doxygen for MQTT_USER and MQTT_PASSWORD (#1105)
This fixes
https://github.com/mysensors/MySensors/issues/1088
2018-04-10 07:56:17 +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
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
Marcelo Aquino
2175c993ef Linux: Use config file for gateway settings (#1061)
- The following settings can be use on the config file:
  - verbose=[debug,info,notice,warn,err] - Logging verbosity.
  - log_file[0|1] - Enable logging to a file.
  - log_filepath=(FILE) - Log file path.
  - log_pipe=[0|1] - Enable logging to a named pipe(aka fifo).
    Use this option to view your gateway's log messages from the
    log_pipe_file (defined below).
    To do so, run the following command on another terminal:
    - $ cat "log_pipe_file"
  - log_pipe_file=(FILE)
  - syslog=[0|1] - Enable logging to syslog.
  - eeprom_file=[/etc/mysensors.eeprom]
  - eeprom_size=[1024]
- Change some mysgw parameters:
  - Added:
    - -q, --quiet:  for quiet mode, disable log messages written to the
    terminal.
  - Removed:
    - -d, --debug: removed, log messages are now enabled by default.
  - Replaced:
    - -b, --background: replaced by --daemon
- isatty() is no longer used, log messages by default are printed to
  stderr unless the gateway is started with --quiet (#1022)
- MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
  but to the configuration file
2018-03-23 11:00:34 +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
tekka
a0af38a0d8 RFM69: Updates and optimizations (#1049)
* RFM69: Updates and optimizations

* RFM69: Updates and optimizations
2018-02-18 21:06:28 +01:00
tekka
0bc3ac9cb3 RFM95: Updates and optimizations (#1063) 2018-02-18 21:05:25 +01:00
Marcelo Aquino
54fb250ab2 Linux: Serial minor update (#1053)
- The symlink name for the PTY device is set using --my-serial-port
  making --my-serial-pty deprecated
- Replace MY_LINUX_IS_SERIAL_PTY with MY_LINUX_SERIAL_IS_PTY
- MY_DEBUGDEVICE can be used to print debug messages from MySensors
  (as it is currently in the other architectures)
- Rename SerialSimulator class to StdInOutStream
- Remove old deprecated option --my-radio
2018-02-13 13:22:27 +01:00
Patrick Fallberg
8a1f5f4cf9 Revamp the simple password flag and rPi fixes (#1056)
MY_SIGNING_SIMPLE_PASSWD is now
called MY_SECURITY_SIMPLE_PASSWD.
MY_SIGNING_SIMPLE_PASSWD only affects signing,
and a new flag, MY_ENCRYPTION_SIMPLE_PASSWD
only affects encryption.
MY_SECURITY_SIMPLE_PASSWD enable both these flags.

The rPi port has been improved to support more
security settings and it is now also possible to
enable encryption for RFM69 transport.

Documentation has been improved to provide a
"Security" section under "Library customisation"
which has a table that summarize all security
related configuration flags, and the corresponding
rPi configuration flags.

The signing personalization documentation has been
updated to include the procedure for rPi.

Fixes #1055
2018-02-11 11:22:48 +01:00
Mikael Falkvidd
467b7e000a Add MY_INCLUSION_LED_PIN (#1030)
Thanks to @TokTias for this idea and a starting point for the code.

This PR replaces https://github.com/mysensors/MySensors/pull/1029
2018-01-23 10:26:01 +01:00