Data Structures | |
| struct | EnmsBrEventHandlers |
| Structure with user-defined callbacks that handle received information. More... | |
| struct | EnmsBr |
| enum EnmsBrResult |
Possible ENMS NODE function results.
| EnmsBrResult ENMS_BR_Init | ( | EnmsBr * | enmsBr, |
| uint16_t | port, | ||
| const EnmsBrEventHandlers * | eventHandlers | ||
| ) |
Initializes the ENMS BorderRouter service.
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | port | UDP port number over which the service will communicate, provide 0 to use default port value 0xF0B1 |
| [in] | eventHandlers | structure holding callbacks that will be called on specific ENMS events (see EnmsBrEventHandlers) |
| ENMS_BR_RESULT_OK | if the service was initialized successfully |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_REGISTER_UDP_SOCKET | if the service failed to register and UDP socket and thus was unable to start |
| EnmsBrResult ENMS_BR_Deinit | ( | EnmsBr * | enmsBr | ) |
Deinitializes the ENMS BorderRouter service
| [in] | enmsBr | ENMS BorderRouter service instance |
| ENMS_BR_RESULT_OK | if the service was deinitialized successfully |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| EnmsBrResult ENMS_BR_QueryBasicInfo | ( | EnmsBr * | enmsBr, |
| const EMBENET_IPV6 * | destinationAddress | ||
| ) |
Queries the remote node for basic information
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | destinationAddress | IPv6 address of the destination node (can be a multicast address) |
| ENMS_BR_RESULT_OK | if the query was sent |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_SEND_PACKET | if the service failed to send out a query packet through UDP |
| EnmsBrResult ENMS_BR_QueryServiceInfo | ( | EnmsBr * | enmsBr, |
| const EMBENET_IPV6 * | destinationAddress, | ||
| uint8_t | serviceNo | ||
| ) |
Queries the remote node for information about a given service
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | destinationAddress | IPv6 address of the destination node (can be a multicast address) |
| [in] | serviceNo | service number |
| ENMS_BR_RESULT_OK | if the query was sent |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_SEND_PACKET | if the service failed to send out a query packet through UDP |
| EnmsBrResult ENMS_BR_QueryStatus | ( | EnmsBr * | enmsBr, |
| const EMBENET_IPV6 * | destinationAddress | ||
| ) |
Queries the remote node for status
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | destinationAddress | IPv6 address of the destination node (can be a multicast address) |
| ENMS_BR_RESULT_OK | if the query was sent |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_SEND_PACKET | if the service failed to send out a query packet through UDP |
| EnmsBrResult ENMS_BR_QueryNeighborhood | ( | EnmsBr * | enmsBr, |
| const EMBENET_IPV6 * | destinationAddress | ||
| ) |
Queries the remote node for neighborhood info
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | destinationAddress | IPv6 address of the destination node (can be a multicast address) |
| ENMS_BR_RESULT_OK | if the query was sent |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_SEND_PACKET | if the service failed to send out a query packet through UDP |
| EnmsBrResult ENMS_BR_QueryCells | ( | EnmsBr * | enmsBr, |
| const EMBENET_IPV6 * | destinationAddress | ||
| ) |
Queries the remote node for cells info
| [in] | enmsBr | ENMS BorderRouter service instance |
| [in] | destinationAddress | IPv6 address of the destination node (can be a multicast address) |
| ENMS_BR_RESULT_OK | if the query was sent |
| ENMS_BR_RESULT_INVALID_INPUT_ARGUMENT | if at least one of the input arguments was invalid |
| ENMS_BR_RESULT_FAILED_TO_SEND_PACKET | if the service failed to send out a query packet through UDP |
Any question or remarks? Just write us a message!
Feel free to get in touch