{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/312","repository_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/312/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/312/events","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/312","id":359144839,"node_id":"MDU6SXNzdWUzNTkxNDQ4Mzk=","number":312,"title":"can't install softdevice","user":{"login":"kriswiner","id":6698410,"node_id":"MDQ6VXNlcjY2OTg0MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6698410?v=4","gravatar_id":"","url":"https://api.github.com/users/kriswiner","html_url":"https://github.com/kriswiner","followers_url":"https://api.github.com/users/kriswiner/followers","following_url":"https://api.github.com/users/kriswiner/following{/other_user}","gists_url":"https://api.github.com/users/kriswiner/gists{/gist_id}","starred_url":"https://api.github.com/users/kriswiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriswiner/subscriptions","organizations_url":"https://api.github.com/users/kriswiner/orgs","repos_url":"https://api.github.com/users/kriswiner/repos","events_url":"https://api.github.com/users/kriswiner/events{/privacy}","received_events_url":"https://api.github.com/users/kriswiner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-09-11T17:25:54Z","updated_at":"2018-12-15T20:04:58Z","closed_at":null,"author_association":"NONE","body":"I (stupidly) upgraded to the latest 0.6.0 core and now I cannot load the softdevice and i am getting this error:\r\n\r\n\r\n** Programming Started **\r\nauto erase enabled\r\nError: couldn't open C:\\Users\\kris\\AppData\\Local\\Arduino15\\packages\\sandeepmistry\\hardware\\nRF5\\0.6.0/cores/nRF5/SDK/components/softdevice/s132/hex/s132_nrf52_2.0.1_softdevice.hex\r\nembedded:startup.tcl:454: Error: ** Programming Failed **\r\nin procedure 'program' \r\nin procedure 'program_error' called at file \"embedded:startup.tcl\", line 510\r\nat file \"embedded:startup.tcl\", line 454\r\nError while flashing SoftDevice.\r\n\r\nIt seems the softdevice can;t be loaded from the git repository. I am sure I followed all of the directions but I must missing something... Can someone please help me fix this?\r\n\r\n**Edited for length**"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/comments/447594338","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/312#issuecomment-447594338","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/312","id":447594338,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU5NDMzOA==","user":{"login":"floe","id":90756,"node_id":"MDQ6VXNlcjkwNzU2","avatar_url":"https://avatars0.githubusercontent.com/u/90756?v=4","gravatar_id":"","url":"https://api.github.com/users/floe","html_url":"https://github.com/floe","followers_url":"https://api.github.com/users/floe/followers","following_url":"https://api.github.com/users/floe/following{/other_user}","gists_url":"https://api.github.com/users/floe/gists{/gist_id}","starred_url":"https://api.github.com/users/floe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floe/subscriptions","organizations_url":"https://api.github.com/users/floe/orgs","repos_url":"https://api.github.com/users/floe/repos","events_url":"https://api.github.com/users/floe/events{/privacy}","received_events_url":"https://api.github.com/users/floe/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T20:04:58Z","updated_at":"2018-12-15T20:04:58Z","author_association":"NONE","body":"StackOverflow to the rescue! (yeah, I know, lazy me): if POST is needed, then instead of [`URL(url).openStream()`](https://github.com/sandeepmistry/arduino-nRF5/blob/master/extras/ide-tools/nRF5FlashSoftDevice.java#L106), we would just need to use the code snippet from here: https://stackoverflow.com/questions/2793150/how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests\r\n\r\n```\r\nURLConnection connection = new URL(url).openConnection();\r\nconnection.setDoOutput(true); // Triggers POST.\r\nconnection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n\r\ntry (OutputStream output = connection.getOutputStream()) {\r\n    output.write(new String(\"ids=DBBEB2467E4A4EBCB791C2E7BE3FC7A8\").getBytes());\r\n}\r\n\r\nInputStream is = connection.getInputStream();\r\n```\r\n\r\nIMHO this should do the trick, although it's completely untested. No more time ATM, sorry."}}
{"actor":{"display_login":"floe"}}