HomeACcessoryKid / ESP8266-HomeKit-Demo

User part of the ESP8266-HomeKit foundation
https://www.youtube.com/watch?v=Xnr-utWDIR8
Apache License 2.0
125 stars 27 forks source link

AiLight - user_main.c:70:1: error: unknown type name 'acc_item' #31

Closed Maxmudjon closed 7 years ago

Maxmudjon commented 7 years ago

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

Maxmudjon commented 7 years ago

it was necessary to update