{"action":"created","issue":{"url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/2","labels_url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/2/comments","events_url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/2/events","html_url":"https://github.com/retfie/cc2538_coap_sensor/issues/2","id":90976987,"number":2,"title":"Cannot compile the files in smcp","user":{"login":"shantanoo-desai","id":12070966,"avatar_url":"https://avatars.githubusercontent.com/u/12070966?v=3","gravatar_id":"","url":"https://api.github.com/users/shantanoo-desai","html_url":"https://github.com/shantanoo-desai","followers_url":"https://api.github.com/users/shantanoo-desai/followers","following_url":"https://api.github.com/users/shantanoo-desai/following{/other_user}","gists_url":"https://api.github.com/users/shantanoo-desai/gists{/gist_id}","starred_url":"https://api.github.com/users/shantanoo-desai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shantanoo-desai/subscriptions","organizations_url":"https://api.github.com/users/shantanoo-desai/orgs","repos_url":"https://api.github.com/users/shantanoo-desai/repos","events_url":"https://api.github.com/users/shantanoo-desai/events{/privacy}","received_events_url":"https://api.github.com/users/shantanoo-desai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-25T14:15:08Z","updated_at":"2015-08-02T05:00:15Z","closed_at":"2015-07-25T12:36:26Z","body":"Hi Kiril, \r\nfirst of all thank you for all your replies in helping me out understanding the code and its implementation.\r\n\r\nI am working on the smcp coap-server.c file in your fork for the smcp. I am using it just to print the values from the sensors without having to store them.\r\nI have made the file in the same folder as the other examples in the smcp folder\r\n**smcp/src/examples**\r\nwhen I do \r\n<pre>\r\n$make clean\r\n$make all\r\n</pre>\r\n\r\nall the files except the coap-server compile. \r\nI made the necessary changes to the Makefile.am too but the compiler keeps ignoring it and does not compile it.\r\n\r\nif i try to use a simple gcc compiler code like\r\n<pre>gcc coap-server.c -o coap-server</pre>\r\nthe error occurs at the :  function required_action_string()\r\n\r\nthe error is\r\n<pre>\r\ncoap-server.c: In function ‘request_handler’:\r\ncoap-server.c:28:41: error: ‘bail’ undeclared (first use in this function)\r\n  require_action_string(path && path[0], bail, (free((void*)path),ret = SMCP_STATUS_INVALID_ARGUMENT),\"Post to empty path, skip\");\r\n                                                                                                                         ^\r\n</pre>\r\nand if I comment out the function the whole file does not compile since it cannot recognise the smcp references.\r\n\r\nWould need some help with this one too!\r\n\r\nsorry for all the questions,\r\nthanks again\r\n\r\nShan"},"comment":{"url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/comments/126987992","html_url":"https://github.com/retfie/cc2538_coap_sensor/issues/2#issuecomment-126987992","issue_url":"https://api.github.com/repos/retfie/cc2538_coap_sensor/issues/2","id":126987992,"user":{"login":"retfie","id":6713234,"avatar_url":"https://avatars.githubusercontent.com/u/6713234?v=3","gravatar_id":"","url":"https://api.github.com/users/retfie","html_url":"https://github.com/retfie","followers_url":"https://api.github.com/users/retfie/followers","following_url":"https://api.github.com/users/retfie/following{/other_user}","gists_url":"https://api.github.com/users/retfie/gists{/gist_id}","starred_url":"https://api.github.com/users/retfie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retfie/subscriptions","organizations_url":"https://api.github.com/users/retfie/orgs","repos_url":"https://api.github.com/users/retfie/repos","events_url":"https://api.github.com/users/retfie/events{/privacy}","received_events_url":"https://api.github.com/users/retfie/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T05:00:15Z","updated_at":"2015-08-02T05:00:15Z","body":"Nice catch ;)\n\nOn Jul 31, 2015 02:57, \"Shantanoo Desai\" <notifications@github.com> wrote:\n>\n> Hi, Kiril. I found the glitch it was my mistake as the the rplinfo I had\nprogrammed had the a capital letter instead of small ones\n> {Dest:xxxxxxx, Next:xxxxxxx} instead of {dest:xxxxxx, next:xxxxxxxx}\nhence the code kept rejecting the the incoming routes.\n> Now maybe I will try to add some useful data information when one clicks\non the nodes like battery value or something.\n>\n> Thanks for your help Kiril. :)\n>\n> —\n> Reply to this email directly or view it on GitHub.\n"}}