{"action":"created","issue":{"url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/42","labels_url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/42/comments","events_url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/42/events","html_url":"https://github.com/etwmc/Personal-HomeKit-HAP-/issues/42","id":86695662,"number":42,"title":"fan and light Accessory.cpp","user":{"login":"gb160","id":2493592,"avatar_url":"https://avatars.githubusercontent.com/u/2493592?v=3","gravatar_id":"","url":"https://api.github.com/users/gb160","html_url":"https://github.com/gb160","followers_url":"https://api.github.com/users/gb160/followers","following_url":"https://api.github.com/users/gb160/following{/other_user}","gists_url":"https://api.github.com/users/gb160/gists{/gist_id}","starred_url":"https://api.github.com/users/gb160/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gb160/subscriptions","organizations_url":"https://api.github.com/users/gb160/orgs","repos_url":"https://api.github.com/users/gb160/repos","events_url":"https://api.github.com/users/gb160/events{/privacy}","received_events_url":"https://api.github.com/users/gb160/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-09T18:47:36Z","updated_at":"2015-06-16T09:09:44Z","closed_at":"2015-06-16T09:09:44Z","body":"Hi, I'm trying to use the fan and light Accessory.cpp but I'm getting error with make....\r\n\r\nDebian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\r\npermitted by applicable law.\r\nLast login: Tue Jun  9 19:06:36 2015 from gavsmac\r\npi@Raspbian ~ $ cd Personal-HomeKit-HAP-\r\npi@Raspbian ~/Personal-HomeKit-HAP- $ sudo make\r\ngcc -O0 -w -o chacha20.o -c Chacha20/chacha20_simple.c\r\ngcc -O0 -w -o curve25519.o -c curve25519/curve25519-donna.c\r\ngcc -O0 -w -o ed25519.o -c ed25519-donna/ed25519.c\r\ngcc -O0 -w -o poly1305.o -c poly1305-opt-master/poly1305.c\r\ngcc -O0 -w -c rfc6234-master/hkdf.c -o rfc6234-master/hkdf.o\r\ngcc -O0 -w -c rfc6234-master/hmac.c -o rfc6234-master/hmac.o\r\ngcc -O0 -w -c rfc6234-master/sha.c -o rfc6234-master/sha.o\r\ng++ -O0 -w -c main.cpp\r\ng++ -O0 -w -c PHKAccessory.cpp\r\ng++ -O0 -w -c PHKControllerRecord.cpp\r\ng++ -O0 -w -c PHKNetworkIP.cpp\r\ngcc    -c -o PHKArduinoLightInterface.o PHKArduinoLightInterface.c\r\ngcc -O0 -lcrypto -w -c srp/srp.c -o srp/srp.o\r\ngcc -O0 -lcrypto -w -c srp/cstr.c -o srp/cstr.o\r\ngcc -O0 -lcrypto -w -c srp/t_math.c -o srp/t_math.o\r\ngcc -O0 -lcrypto -w -c srp/srp6_server.c -o srp/srp6_server.o\r\ngcc -O0 -lcrypto -w -c srp/t_conf.c -o srp/t_conf.o\r\ngcc -O0 -lcrypto -w -c srp/t_conv.c -o srp/t_conv.o\r\ngcc -O0 -lcrypto -w -c srp/t_pw.c -o srp/t_pw.o\r\ngcc -O0 -lcrypto -w -c srp/t_misc.c -o srp/t_misc.o\r\ngcc -O0 -lcrypto -w -c srp/t_truerand.c -o srp/t_truerand.o\r\ngcc -O0 -lcrypto -w -c srp/t_read.c -o srp/t_read.o\r\ng++ -O0 -w -c Accessory.cpp\r\nAccessory.cpp: In function ‘void initAccessorySet()’:\r\nAccessory.cpp:22:77: error: too few arguments to function ‘void addInfoServiceToAccessory(Accessory*, std::string, std::string, std::string, std::string, identifyFunction)’\r\n     addInfoServiceToAccessory(lightAcc, \"Light 1\", \"ET\", \"Light\", \"12345678\");\r\n                                                                             ^\r\nIn file included from Accessory.cpp:7:0:\r\nPHKAccessory.h:321:6: note: declared here\r\n void addInfoServiceToAccessory(Accessory *acc, string accName, string manufactuerName, string modelName, string serialNumber, identifyFunction identifyCallback);\r\n      ^\r\nAccessory.cpp:42:68: error: too few arguments to function ‘void addInfoServiceToAccessory(Accessory*, std::string, std::string, std::string, std::string, identifyFunction)’\r\n     addInfoServiceToAccessory(fan, \"Fan 1\", \"ET\", \"Fan\", \"12345678\");\r\n                                                                    ^\r\nIn file included from Accessory.cpp:7:0:\r\nPHKAccessory.h:321:6: note: declared here\r\n void addInfoServiceToAccessory(Accessory *acc, string accName, string manufactuerName, string modelName, string serialNumber, identifyFunction identifyCallback);\r\n      ^\r\nmakefile:36: recipe for target 'Accessory.o' failed\r\nmake: *** [Accessory.o] Error 1\r\npi@Raspbian ~/Personal-HomeKit-HAP- $ "},"comment":{"url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/comments/112351179","html_url":"https://github.com/etwmc/Personal-HomeKit-HAP-/issues/42#issuecomment-112351179","issue_url":"https://api.github.com/repos/etwmc/Personal-HomeKit-HAP-/issues/42","id":112351179,"user":{"login":"etwmc","id":8774391,"avatar_url":"https://avatars.githubusercontent.com/u/8774391?v=3","gravatar_id":"","url":"https://api.github.com/users/etwmc","html_url":"https://github.com/etwmc","followers_url":"https://api.github.com/users/etwmc/followers","following_url":"https://api.github.com/users/etwmc/following{/other_user}","gists_url":"https://api.github.com/users/etwmc/gists{/gist_id}","starred_url":"https://api.github.com/users/etwmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etwmc/subscriptions","organizations_url":"https://api.github.com/users/etwmc/orgs","repos_url":"https://api.github.com/users/etwmc/repos","events_url":"https://api.github.com/users/etwmc/events{/privacy}","received_events_url":"https://api.github.com/users/etwmc/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T09:09:44Z","updated_at":"2015-06-16T09:09:44Z","body":"The code has fixed. (it's actually add an identify function)"}}