|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
Outbound webhooks / IFTTT (PC_ENABLE_WEBHOOK). More...
Go to the source code of this file.
Outbound webhooks / IFTTT (PC_ENABLE_WEBHOOK).
Builds an IFTTT Maker webhook URL and its value1/value2/value3 JSON payload (pure, host-tested), and fires them - or any JSON to any URL - via the outbound http_client (a POST). Lets the device push an event to IFTTT, a Slack/Discord incoming webhook, or your own REST endpoint. Needs PC_ENABLE_HTTP_CLIENT to send; without it the API still compiles but pc_webhook_post() returns -1.
Definition in file webhook.h.