user_main.c:70:1: error: unknown type name 'acc_item'
extern acc_item acc_items[];
^
user_main.c: In function 'lightSET':
user_main.c:127:49: error: request for member 'json' in something not a structure or union
on=cJSON_GetObjectItem(acc_items[mylight.on].json,"value")->type;
^
user_main.c:129:55: error: request for member 'json' in something not a structure or union
bri=cJSON_GetObjectItem(acc_items[mylight.bri].json,"value")->valueint;
^
user_main.c:130:55: error: request for member 'json' in something not a structure or union
hue=cJSON_GetObjectItem(acc_items[mylight.hue].json,"value")->valueint;
^
user_main.c:131:55: error: request for member 'json' in something not a structure or union
sat=cJSON_GetObjectItem(acc_items[mylight.sat].json,"value")->valueint;
^
make[1]: [.output/eagle/debug/obj/user_main.o] Error 1
make: [.subdirs] Error 2
user_main.c:70:1: error: unknown type name 'acc_item' extern acc_item acc_items[]; ^ user_main.c: In function 'lightSET': user_main.c:127:49: error: request for member 'json' in something not a structure or union on=cJSON_GetObjectItem(acc_items[mylight.on].json,"value")->type; ^ user_main.c:129:55: error: request for member 'json' in something not a structure or union bri=cJSON_GetObjectItem(acc_items[mylight.bri].json,"value")->valueint; ^ user_main.c:130:55: error: request for member 'json' in something not a structure or union hue=cJSON_GetObjectItem(acc_items[mylight.hue].json,"value")->valueint; ^ user_main.c:131:55: error: request for member 'json' in something not a structure or union sat=cJSON_GetObjectItem(acc_items[mylight.sat].json,"value")->valueint; ^ make[1]: [.output/eagle/debug/obj/user_main.o] Error 1 make: [.subdirs] Error 2