MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / Event

Class Event

lib/AsyncHttpClient/src/AsyncHttpClient.h:287–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 * A event is a combination of notification and its corresponding data.
286 */
287 struct Event
288 {
289 EventId id; /**< Event id to identify the kind of notification. */
290
291 /**
292 * The union contains the event id specific parameters.
293 * Note not every event id must have parameters.
294 */
295 union
296 {
297 /**
298 * Data parameters, only valid for EVENT_ID_DATA.
299 */
300 struct
301 {
302 uint8_t* data; /**< Event specific data. */
303 size_t size; /**< Event specific data size in byte. */
304 } data;
305
306 int8_t error; /**< Error id, valid only for EVENT_ID_ERROR */
307 uint32_t timeout; /**< Timeout in ms, valid only for EVENT_ID_TIMEOUT */
308 } u;
309 };
310
311 /**
312 * HTTP response parts.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected