Callisto4Bootloader: ARK/platform_coap.h File Reference

Callisto4Bootloader

Functions
platform_coap.h File Reference
`#include "platform-api.h"`

Go to the source code of this file.

## Functions

void * | CoAP_Initialise (void)
bool | CoAP_CreateResource (stPLATFORM_ObjectData_t *pstObjectData)
void | CoAP_ObjectUpdated (const stPLATFORM_ObjectData_t *pstObjectData)

## Function Documentation

## ◆ CoAP_CreateResource()

bool CoAP_CreateResource | ( | stPLATFORM_ObjectData_t * | pstObjectData | ) |

Create a CoAP resource

Parameters

  [in] | pstObjectData | Object data to associate with a CoAP resource

Returns
  true if creation was successful, else false

Definition at line 180 of file platform_coap.c.

References CreateResource(), GET_Callback(), NULL, and PUT_Callback().

## ◆ CoAP_Initialise()

void* CoAP_Initialise | ( | void |  | ) |

Initialise the CoAP library

Returns
  Blind pointer to created context

Definition at line 148 of file platform_coap.c.

References context, CreateResource(), META_Callback(), meta_resource, and NULL.

## ◆ CoAP_ObjectUpdated()

void CoAP_ObjectUpdated | ( | const stPLATFORM_ObjectData_t * | pstObjectData | ) |

Notify the CoAP library that a resource has changed

Parameters

  [in] | pstObjectData | Object data previously associated with the CoAP resource

Definition at line 206 of file platform_coap.c.

References context.