Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
ezeio2:apiref:subscribe [2021-01-27 00:10] – andreh | ezeio2:apiref:subscribe [2021-01-27 00:32] – andreh | ||
---|---|---|---|
Line 115: | Line 115: | ||
With an open websocket and while receiving data from the ezeio system, you can call the subscribe API to request immediate updates or to cancel updates from a certain ezeio. | With an open websocket and while receiving data from the ezeio system, you can call the subscribe API to request immediate updates or to cancel updates from a certain ezeio. | ||
- | To request | + | To request |
+ | < | ||
+ | The log updates will revert to normal (buffered) mode after 30 minutes. | ||
+ | |||
+ | To request 10s status | ||
< | < | ||
+ | The status updates will revert to normal (10 minute) updates after 5 minutes. | ||
To cancel updates, the call is: | To cancel updates, the call is: | ||
Line 135: | Line 140: | ||
// Using the textalk/ | // Using the textalk/ | ||
+ | // https:// | ||
require(' | require(' | ||
use WebSocket\Client; | use WebSocket\Client; | ||
- | // Request a websocket key using cURL | + | // Request a websocket key and metadata |
$ch = curl_init(); | $ch = curl_init(); | ||
curl_setopt($ch, | curl_setopt($ch, |