/Homie8266-Ping

📣 Homie 3.0 Demo for Ping-Node // Deprecated: Example is now integrated in examples of Homie-ESP8266

Primary LanguageC++MIT LicenseMIT

Deprecated: Example is now integrated in examples of Homie-ESP8266

📣 Homie 3.0 Ping Example

Current Build License: MIT

📣 Homie 3.0 Ping example for ESP8266 and ESP32.

This is a simple example using Homie to demopnstrate Ping: You are able to send a Homie 3.0 compatible ping-request to the controller and it will answer with message 'pong'.

The controller sends in addition in loop a still-alive-message 'hello'.

Usage

If the sketch is deployed you will get the ID of the ESP for the HOMIE-messages. Something like:

💡 Booting into normal mode 
{} Stored configuration
  • Hardware device ID: [deviceID]
  • Device ID: [deviceID]
  • Name: Ping
  • Device Stats Interval: 60 sec
  • Wi-Fi:
    â—¦ SSID: *****
    â—¦ Password not shown
  • MQTT:
    â—¦ Host: *****
    â—¦ Port: 1883
    â—¦ Base topic: homie/
    â—¦ Auth? no
  • OTA:
    â—¦ Enabled? yes
  • Open now your MQTT-Client
  • Now you are able to send any String to MQTT-topic homie/[deviceID]/ping/ping/set
  • You will receive pong message as reply on topic homie/[deviceID]/ping/ping.

In addition every 60 sec you will get the alive message on topic homie/[deviceID]/ping/ping with message hello.

Develop & Deploy

Use PlatformIO. See also at Readme.md of Homie-ESP8266 project: (https://github.com/homieiot/homie-esp8266/)

Used Libraries

License

LICENSE


My Smart Home Blog: https://medium.com/diy-my-smart-home