Subscribe and receive notification to a change of a single resource.
#include <stdlib.h>
#include <stdio.h>
#define IPC_PORT (12345)
#define IPC_ADDRESS "127.0.0.1"
#define OPERATION_PERFORM_TIMEOUT 1000
static void changeCallback(
const AwaChangeSet * changeSet,
void * context)
{
const char * userData = (const char *)context;
printf("Callback received. Context = %s\n", userData);
const char * value;
printf("Value of resource /3/0/0 changed to: %s\n", value);
}
int main(void)
{
const char * userData = "My custom data";
(void *)userData);
return 0;
}