Example node for Yodiwo's Plegma API
Dependencies: EthernetInterface FXOS8700Q HTTPClient HTTPD MQTTS SDFileSystem YodiwoPlegma mbed-rpc mbed-rtos mbed wolfSSL
pairing_backend.h
- Committer:
- mitsarionas
- Date:
- 2015-09-01
- Revision:
- 0:00797f1ebe04
- Child:
- 1:c5abc450140c
File content as of revision 0:00797f1ebe04:
#ifndef __PAIRING_BACKEND_H__ #define __PAIRING_BACKEND_H__ #ifdef __cplusplus extern "C" { #endif typedef void (*onPaired_callback)(char *nodeKey, char *secretKey); typedef struct { char *postUrl; char *uuid; char *name; char *token1; char *token2; char *nodeKey; char *secretKey; onPaired_callback onPaired; } pairing_context; int pairing_context_init_with_defaults(pairing_context *ctx, onPaired_callback callback); int start_pairing(pairing_context *ctx); #ifdef __cplusplus } #endif #endif /* __PAIRING_BACKEND_H__ */