This is a multi-threaded C++ program that listens to Server-Sent Events (SSE) and prints the messages to the console. All messages are parsed, and the program serves as an example of how to parse SSE messages in C++.
Using this code as the base, you can extend it to do whatever you want with the messages.
The program is using the Pépito API to get the messages.
For example you could:
- When Pépito goes in or out of the house
- Connect to all Philips Hue bridges on your network and flash the lights when a particular message is received.
- Use your imagination and do something fun with the messages.
# Arch Linux
pacman -S meson nlohmann-json base-devel
VSCode press F5 to build and run the program.
# Build the program
clear && meson setup build --buildtype=debug && cd build && ninja && cd ..
# Run the program
./build/pepito_app
MIT License