[riot-notifications] [RIOT-OS/RIOT] examples/emcute_mqttsn: allow override of EMCUTE_ID (#11747)

Hauke Petersen notifications at github.com
Wed Jun 26 12:08:23 CEST 2019


### Contribution description
When trying to connect more than one RIOT node running `emcute` to a broker, each node must have a different node ID string. The current example application makes this slightly difficult by forcing to edit the source code for setting different IDs...

This PR simply lets the use override the default node ID during build time using the `EMCUTE_ID` environment variable, should be straight forward...

### Testing procedure
Compile the example with different values for `EMCUTE_ID` and verify that these values are actually used.

### Issues/PRs references
none
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11747

-- Commit Summary --

  * examples/emcute_mqttsn: allow override of EMCUTE_ID

-- File Changes --

    M examples/emcute_mqttsn/Makefile (5)
    M examples/emcute_mqttsn/main.c (4)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11747.patch
https://github.com/RIOT-OS/RIOT/pull/11747.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11747
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190626/5ef90c65/attachment.html>


More information about the notifications mailing list