ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

mqtt.h 714B

123456789101112131415161718192021222324
  1. /*
  2. * mqtt.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __MQTT_H__
  14. #define __MQTT_H__
  15. void initMQTT();
  16. void runMQTT();
  17. #ifdef FEATURE_UI
  18. void writeMQTTtopic(const char *topic, const char *data, bool retain = true);
  19. #endif // FEATURE_UI
  20. #endif // __MQTT_H__