BlynkConfig.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**
  2. * @file BlynkConfig.h
  3. * @author Volodymyr Shymanskyy
  4. * @license This project is released under the MIT License (MIT)
  5. * @copyright Copyright (c) 2015 Volodymyr Shymanskyy
  6. * @date Jan 2015
  7. * @brief Configuration of different aspects of library
  8. *
  9. */
  10. #ifndef BlynkConfig_h
  11. #define BlynkConfig_h
  12. /***************************************************
  13. * Change these settings to match your need
  14. ***************************************************/
  15. #define BLYNK_DEFAULT_DOMAIN "cloud.blynk.cc"
  16. #define BLYNK_DEFAULT_PORT 8442
  17. #define BLYNK_DEFAULT_PORT_SSL 8441
  18. /***************************************************
  19. * Professional settings
  20. ***************************************************/
  21. // Library version.
  22. #define BLYNK_VERSION "1.0.1"
  23. // Heartbeat period in seconds.
  24. #ifndef BLYNK_HEARTBEAT
  25. #define BLYNK_HEARTBEAT 10
  26. #endif
  27. // Network timeout in milliseconds.
  28. #ifndef BLYNK_TIMEOUT_MS
  29. #define BLYNK_TIMEOUT_MS 2000UL
  30. #endif
  31. // Limit the amount of outgoing commands.
  32. #ifndef BLYNK_MSG_LIMIT
  33. #define BLYNK_MSG_LIMIT 20
  34. #endif
  35. // Limit the incoming command length.
  36. #ifndef BLYNK_MAX_READBYTES
  37. #define BLYNK_MAX_READBYTES 256
  38. #endif
  39. // Limit the outgoing command length.
  40. #ifndef BLYNK_MAX_SENDBYTES
  41. #define BLYNK_MAX_SENDBYTES 128
  42. #endif
  43. // Uncomment to disable built-in analog and digital operations.
  44. //#define BLYNK_NO_BUILTIN
  45. // Uncomment to disable providing info about device to the server.
  46. //#define BLYNK_NO_INFO
  47. // Uncomment to enable debug prints.
  48. //#define BLYNK_DEBUG
  49. // Uncomment to enable experimental functions.
  50. //#define BLYNK_EXPERIMENTAL
  51. // Uncomment to disable all float/double usage
  52. //#define BLYNK_NO_FLOAT
  53. // Uncomment to switch to direct-connect mode
  54. //#define BLYNK_USE_DIRECT_CONNECT
  55. // Uncomment to append command body to header (uses more RAM)
  56. //#define BLYNK_SEND_ATOMIC
  57. // Split whole command into chunks (in bytes)
  58. //#define BLYNK_SEND_CHUNK 64
  59. // Wait after sending each chunk (in milliseconds)
  60. //#define BLYNK_SEND_THROTTLE 10
  61. #endif