{"action":"created","issue":{"url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/59","repository_url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib","labels_url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/59/comments","events_url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/59/events","html_url":"https://github.com/TheThingsNetwork/arduino-device-lib/pull/59","id":178647575,"number":59,"title":"setting appEui and appKey in provision()","user":{"login":"Nicolasdejean","id":20477842,"avatar_url":"https://avatars.githubusercontent.com/u/20477842?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicolasdejean","html_url":"https://github.com/Nicolasdejean","followers_url":"https://api.github.com/users/Nicolasdejean/followers","following_url":"https://api.github.com/users/Nicolasdejean/following{/other_user}","gists_url":"https://api.github.com/users/Nicolasdejean/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicolasdejean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicolasdejean/subscriptions","organizations_url":"https://api.github.com/users/Nicolasdejean/orgs","repos_url":"https://api.github.com/users/Nicolasdejean/repos","events_url":"https://api.github.com/users/Nicolasdejean/events{/privacy}","received_events_url":"https://api.github.com/users/Nicolasdejean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T15:49:11Z","updated_at":"2016-09-22T18:20:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/pulls/59","html_url":"https://github.com/TheThingsNetwork/arduino-device-lib/pull/59","diff_url":"https://github.com/TheThingsNetwork/arduino-device-lib/pull/59.diff","patch_url":"https://github.com/TheThingsNetwork/arduino-device-lib/pull/59.patch"},"body":"added provision() #50 "},"comment":{"url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/comments/248985000","html_url":"https://github.com/TheThingsNetwork/arduino-device-lib/pull/59#issuecomment-248985000","issue_url":"https://api.github.com/repos/TheThingsNetwork/arduino-device-lib/issues/59","id":248985000,"user":{"login":"FokkeZB","id":2699409,"avatar_url":"https://avatars.githubusercontent.com/u/2699409?v=3","gravatar_id":"","url":"https://api.github.com/users/FokkeZB","html_url":"https://github.com/FokkeZB","followers_url":"https://api.github.com/users/FokkeZB/followers","following_url":"https://api.github.com/users/FokkeZB/following{/other_user}","gists_url":"https://api.github.com/users/FokkeZB/gists{/gist_id}","starred_url":"https://api.github.com/users/FokkeZB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FokkeZB/subscriptions","organizations_url":"https://api.github.com/users/FokkeZB/orgs","repos_url":"https://api.github.com/users/FokkeZB/repos","events_url":"https://api.github.com/users/FokkeZB/events{/privacy}","received_events_url":"https://api.github.com/users/FokkeZB/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T18:20:05Z","updated_at":"2016-09-22T18:20:05Z","body":"@johanstokking I tried to fix this by changing `reset()` to:\r\n\r\n```c\r\nvoid TheThingsNetwork::reset(bool adr, int sf, int fsb) {\r\n  #if !TTN_ADR_SUPPORTED\r\n    adr = false;\r\n  #endif\r\n\r\n  modemStream->println(F(\"sys reset\"));\r\n  String version = readLine(3000);\r\n  if (version == \"\") {\r\n    debugPrintLn(F(\"Invalid version\"));\r\n    return;\r\n  }\r\n\r\n  model = version.substring(0, version.indexOf(' '));\r\n  debugPrint(F(\"Version is \"));\r\n  debugPrint(version);\r\n  debugPrint(F(\", model is \"));\r\n  debugPrintLn(model);\r\n\r\n  String devEui = readValue(F(\"sys get hweui\"));\r\n  String str = \"\";\r\n  str.concat(F(\"mac set deveui \"));\r\n  str.concat(devEui);\r\n  sendCommand(str);\r\n\r\n  str = \"\";\r\n  str.concat(F(\"mac set adr \"));\r\n  if(adr){\r\n    str.concat(F(\"on\"));\r\n  } else {\r\n    str.concat(F(\"off\"));\r\n  }\r\n  sendCommand(str);\r\n  // ..\r\n```\r\n\r\nBut now I get an `ok` in response to `sys get hweui`:\r\n\r\n```\r\n-- STATUS\r\nEUI: 0004A30B001B7AD2\r\nBattery: 3213\r\nAppEUI: 70B3D57EF0000028\r\nDevEUI: 0004A30B001B7AD2\r\nDevAddr: 00000000\r\nData Rate: 5\r\nRX Delay 1: 1000\r\nRX Delay 2: 2000\r\n-- JOIN\r\nVersion is RN2483 1.0.1 Dec 15 2015 09:38:09, model is RN2483\r\nSending: mac set deveui 0004A30B001B7AD2\r\nSending: mac set adr off\r\nSending: mac set pwridx 1\r\nSending: mac set dr 5\r\nSending: mac set appeui with 8 bytes\r\nSending: mac set appkey with 16 bytes\r\nSending: mac save\r\nWait for OK time-out expired\r\nSending: mac set deveui ok\r\nResponse is not OK: invalid_param\r\n```\r\n\r\nAny idea?"}}
{"actor":{"display_login":"FokkeZB"}}