Commit Graph
1924 Commits
Author SHA1 Message Date
Mikael Falkvidd bb80732ead Add keywords that already have Doxygen (#1108)
Found some keywords that already have Doxygen comments
but were not present in keywords.txt
2018-04-09 23:27:19 +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
Mikael Falkvidd 9809eb6270 Add missing keywords 2 (#1087)
* Add missing keywords and blacklist

These keywords already exist in Doxygen and should be highlighted
in the Arduino IDE.

Some keywords should not be highlighed and are therefore added
to the blacklists at end of keywords.txt

* Sort keywords in each section

* Add blacklist of MY_MQTT_TOPIC_PREFIX
2018-04-05 22:25:05 +02:00
tekka 2994d83e53 RF24: Minor power optimization (#1069) 2018-04-04 20:48:36 +02:00
Marcelo Aquino 3c0b2727a5 Linux: Support keys in config file (#1093)
- Signing and encryption keys are set through the configuration file.
- SoftEeprom update.
2018-04-04 20:43:13 +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 b5a2fc226f Linux: RF24 interrupt trigger workaround (#1094)
Fix #870
2018-03-27 23:07:57 +02:00
Marcelo Aquino fb95a84e6f Linux: Minor log fix (#1092)
Use colored log messages only on the terminal.
2018-03-25 15:51:41 -03:00
Marcelo Aquino ea6d07cb79 Linux: Fix stability problem with ethernet (#1091)
- Fix a problem where mysgw stops working and consumes a lot of cpu.
- Fix bug with tcp sockets where socket descriptor wasn't being
  freed.
2018-03-24 08:16:44 +01: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
Mikael Falkvidd 06f8d2b7e5 Add detection of missing keywords to gitler (#1085) 2018-03-22 08:26:27 +01:00
Mikael Falkvidd c9c461846a Add missing keywords (#1084)
A blacklist is available at the end of keywords.txt

I decided to blacklist all the LINUX keywords. I guess people
could use the Arduino IDE to edit the sketch for the raspberry
pi gateway, but I'm not sure we should encourage that.

I'll add gitler support for auto-detecting missing keywords
in a separate PR.
2018-03-21 15:08:02 +01:00
Mikael Falkvidd 7a33082eaf Simplify doxygen for ./configure (#1080)
No need to grep when we have a command that outputs
exactly what we want.
2018-03-12 11:47:39 +01:00
kvoit 3d093e6bed Fix default IRQ pins on ESP8266 that prevent MCU from boot (#1076)
* Derive default interrupt from configured instead of default pin

Derive DEFAULT_RFM69_IRQ_NUM from MY_RFM69_IRQ_PIN instead of
DEFAULT_RFM69_IRQ_PIN so that _NUM does not have to be defined
if _PIN is redefined

* Change default IRQ pin for RFM69/95 on ESP8266 to GPIO5=D1

The originally defined pin GPIO2 prevent ESP8266 from booting,
since it has to be pulled high for booting and DIO0 from the
RFM69 is defaul low.
For this reason, it is improbably that anyone is using the default
and would be affected by this change.
2018-03-08 17:56:22 +01:00
Patrick Fallberg 3f2d292142 Add git commit message hook to the mystools bundle (#1067)
The message hook validates that the c ommit message follows
the MySensors requirements.
More specifically, it checks that
- Commit message does not exceed a line length of 72 characters
- Commit title start with an uppercase character
- Commit title does not end with a period ('.')

Fixes #672
2018-03-06 08:32:54 -08:00
Patrick Fallberg eb839464b8 Development version 2.3.0-alpha (#1073) 2018-03-04 17:49:51 +01: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 57eca4f4af Transport code harmonization (#1072) 2018-02-20 12:32:17 +01:00
tekka b51981ab3d Fix MY_CORE_ONLY: Initialize HW (#1070) 2018-02-20 12:32:03 +01:00
tekka 345d6d7d11 Fix variable names, minor updates (#1071) 2018-02-19 13:26:14 +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
tekka 6794c72ecd Restructure transport HAL (#1062) 2018-02-11 16:48:11 +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
Patrick Fallberg 968b2daff7 Various CI-pipeline fixes (#1042)
* Let Gitler produce a changelog for release builds
* Fix bug in publishing release documentation
* Fix bug in labeling documentation
   (now uses tag data for better tracability)
* Update copyright in documentation
2018-02-10 20:43:18 +01:00
tekka 72b71c8fc8 AVR: Harmonize code (#1059) 2018-02-10 18:58:20 +01:00
tekka dea0fd50ca Fix smartSleep() (#1060) 2018-02-10 18:49:31 +01:00
Miloslav Kazda 7ed54423fb RFM69 - add keyword MY_RFM69_IRQ_PIN (#1052)
* Add MY_RFM69_IRQ_PIN keyword

Add MY_RFM69_IRQ_PIN into keywords.txt
2018-02-02 12:37:53 +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 8fbdca4452 Doxygenize MyMessage / Message manipulation (#1035)
* Fix cppcheck issues

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.

* Doxygenize MyMessage / Message manipulation

This should replace the static documentation at
http://korturl.nu/stupid

I have enabled existing comments and added new comments where
necessary. Feedback on syntax and contents is welcome.
2018-01-30 20:47:11 +01:00
tekka eff1136733 RFM69: Fix compiler warning (#1046) 2018-01-28 14:41:03 +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
Patrick Fallberg 52ac498eda Development version 2.2.1-alpha (#1043) 2018-01-25 22:52:57 +01:00
Mikael Falkvidd git@mjo.se 64be32a19a MySensors 2.2.0 release 2018-01-24 20:56:53 +01:00
Patrick Fallberg 8d3d7ae6b8 Update README.md for upcoming release (#994) 2018-01-24 10:11: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
Mikael Falkvidd d9059d7bd5 Relax Gitler on commit headline length (#1031)
The guide we are referring to
( https://chris.beams.io/posts/git-commit/ )
says:
shoot for 50 characters, but consider 72 the hard limit

so let Gitler consider 72 the hard limit (instead of 50).
2018-01-19 17:52:07 +01:00
tekka af3452f91c Correct misspells (#1028) 2018-01-11 22:26:08 +01:00
tekka 1feae06d7f SignalReport disabled by default (#1027) 2018-01-11 07:46:43 +01:00
Mikael Falkvidd ca73ae20d6 Linux/SerialPort: Log success message (#1021)
This log message makes the Serial gateway print the serial port path,
similar to how the Ethernet gateway prints IP and port.

Example log output:
mysgw: Serial port /dev/MyCoolTTY (115200 baud) created
2018-01-07 14:52:08 +01:00
tekka 6434d2fa99 Linux: Fix null ptr exception (#1025) 2018-01-07 14:51:28 +01:00
tekka b51c77b2bf Update doxygen (#1024) 2018-01-01 12:55:06 +01:00
tekka d557cb3d34 Doxygenize MyGatewayTransport (#1023) 2018-01-01 12:13:18 +01:00
tekka 292dc849cc RFM69: Fix compiler warnings (#1020) 2017-12-28 13:07:09 +01:00
rejoe2 b148d828ad Add MY_RS485_SOH_COUNT option (#1014) 2017-12-18 16:57:53 +01:00
Mikael Falkvidd 27b0177d26 Update reference to Code Contribution Guidelines (#1011)
As mentioned by per1234 in
https://github.com/mysensors/MySensors/pull/1008
we should make it easier to find the full code contribution
guidelines.

Since we have multiple git repos, we don't want to duplicate the
guidelines in each repo. Instead, we link to the canonical source
on mysensors.org.
2017-12-09 10:08:43 +01:00