{"action":"created","issue":{"url":"https://api.github.com/repos/mjendza/arduino/issues/13","labels_url":"https://api.github.com/repos/mjendza/arduino/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mjendza/arduino/issues/13/comments","events_url":"https://api.github.com/repos/mjendza/arduino/issues/13/events","html_url":"https://github.com/mjendza/arduino/issues/13","id":70491378,"number":13,"title":"HC-06","user":{"login":"mjendza","id":366901,"avatar_url":"https://avatars.githubusercontent.com/u/366901?v=3","gravatar_id":"","url":"https://api.github.com/users/mjendza","html_url":"https://github.com/mjendza","followers_url":"https://api.github.com/users/mjendza/followers","following_url":"https://api.github.com/users/mjendza/following{/other_user}","gists_url":"https://api.github.com/users/mjendza/gists{/gist_id}","starred_url":"https://api.github.com/users/mjendza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjendza/subscriptions","organizations_url":"https://api.github.com/users/mjendza/orgs","repos_url":"https://api.github.com/users/mjendza/repos","events_url":"https://api.github.com/users/mjendza/events{/privacy}","received_events_url":"https://api.github.com/users/mjendza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mjendza/arduino/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-23T19:23:39Z","updated_at":"2015-05-14T16:59:36Z","closed_at":null,"body":"\r\n\r\n<!---\r\n@huboard:{\"order\":13.0,\"milestone_order\":13,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/mjendza/arduino/issues/comments/102102724","html_url":"https://github.com/mjendza/arduino/issues/13#issuecomment-102102724","issue_url":"https://api.github.com/repos/mjendza/arduino/issues/13","id":102102724,"user":{"login":"mjendza","id":366901,"avatar_url":"https://avatars.githubusercontent.com/u/366901?v=3","gravatar_id":"","url":"https://api.github.com/users/mjendza","html_url":"https://github.com/mjendza","followers_url":"https://api.github.com/users/mjendza/followers","following_url":"https://api.github.com/users/mjendza/following{/other_user}","gists_url":"https://api.github.com/users/mjendza/gists{/gist_id}","starred_url":"https://api.github.com/users/mjendza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjendza/subscriptions","organizations_url":"https://api.github.com/users/mjendza/orgs","repos_url":"https://api.github.com/users/mjendza/repos","events_url":"https://api.github.com/users/mjendza/events{/privacy}","received_events_url":"https://api.github.com/users/mjendza/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T16:59:36Z","updated_at":"2015-05-14T16:59:36Z","body":"void loop() // run over and over\n{\n\n  while (!mySerial.available());   // stay here so long as COM port is empty\n  delay(2000);\n  mySerial.print(\"AT+NAMEREL_MOD\");\n  delay(2000);\n  mySerial.print(\"AT+PIN5690\"); \n  delay(2000);\n  receivedChar = mySerial.read();\n  if (receivedChar == '1') {\n    digitalWrite(LED, HIGH);\n  }// if it's a 1 turn LED on\n  if (receivedChar == '2') {\n    digitalWrite(LED, LOW);\n  } // if it's a 2 turn LED off\n  \n}\n\nthis code works, we should reset arduino after we put the code into the device"}}