Smart-Home am Beispiel der Präsenzerkennung im Raum Projektarbeit Lennart Heimbs, Johannes Krug, Sebastian Dohle und Kevin Holzschuh bei Prof. Oliver Hofmann SS2019
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RepeaterNode.ino 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * The MySensors Arduino library handles the wireless radio link and protocol
  3. * between your home built sensors/actuators and HA controller of choice.
  4. * The sensors forms a self healing radio network with optional repeaters. Each
  5. * repeater and gateway builds a routing tables in EEPROM which keeps track of the
  6. * network topology allowing messages to be routed to nodes.
  7. *
  8. * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
  9. * Copyright (C) 2013-2018 Sensnology AB
  10. * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
  11. *
  12. * Documentation: http://www.mysensors.org
  13. * Support Forum: http://forum.mysensors.org
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License
  17. * version 2 as published by the Free Software Foundation.
  18. *
  19. *******************************
  20. *
  21. * REVISION HISTORY
  22. * Version 1.0 - Henrik Ekblad
  23. *
  24. * DESCRIPTION
  25. * Example sketch showing how to create a node that repeats messages
  26. * from nodes far from gateway back to gateway.
  27. * It is important that nodes that has enabled repeater mode calls
  28. * process() frequently. Repeaters should never sleep.
  29. */
  30. // Enable debug prints to serial monitor
  31. #define MY_DEBUG
  32. // Enable and select radio type attached
  33. #define MY_RADIO_RF24
  34. //#define MY_RADIO_NRF5_ESB
  35. //#define MY_RADIO_RFM69
  36. //#define MY_RADIO_RFM95
  37. // Enabled repeater feature for this node
  38. #define MY_REPEATER_FEATURE
  39. #include <MySensors.h>
  40. void setup()
  41. {
  42. }
  43. void presentation()
  44. {
  45. //Send the sensor node sketch version information to the gateway
  46. sendSketchInfo("Repeater Node", "1.0");
  47. }
  48. void loop()
  49. {
  50. }