Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.35 KB | None | 0 0
  1. /*
  2.  *  It should not be necessary to change anything else than in this file to suit your needs.
  3.  *  If you need to change other things, consider adding to this file and submit a pull request :)
  4.  */
  5.  
  6. // Change config to verify that project has been configured
  7. #define CONFIGURED 0
  8.  
  9. // WIFI settings
  10. #define WIFISSID     "XX" // Put in your SSID
  11. #define WIFIPASSWORD "XX" // Put in you SSID Password
  12. #define CUSTOM_HOSTNAME "Nilan_MQTT"  // Hostname of the ESP8266 so that it's easier to find in your DHCP range
  13.  
  14. // LED settings
  15. #define WIFI_LED     2     // Blue led on NodeMCU
  16. #define USE_WIFI_LED false // if 'true', the blue led in a NodeMCU will blink during connection,
  17.                            // and glow solid once connected
  18. // MQTT settings
  19. #define MQTTSERVER   "XX" // Put in the IP adresse of your MQTT broker
  20. #define MQTTUSERNAME NULL // Username for the MQTT broker (NULL if no username is required)
  21. #define MQTTPASSWORD NULL // Passowrd for the MQTT broker (NULL if no password is required)
  22.  
  23. // Serial port
  24. #define SERIAL       SERIAL_HARDWARE // SERIAL_SOFTWARE or SERIAL_HARDWARE
  25. #define SERIAL_SOFTWARE_RX D2 // only needed if SERIAL is SERIAL_SOFTWARE
  26. #define SERIAL_SOFTWARE_TX D1 // only needed if SERIAL is SERIAL_SOFTWARE
  27.  
  28. #if CONFIGURED == 0
  29.   #error "Default configuration used - won't upload to avoid loosing connection."
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement