{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/45","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/45/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/45/events","html_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/45","id":122983856,"number":45,"title":"BLESerial Class and Serial Example","user":{"login":"vojtamolda","id":8467740,"avatar_url":"https://avatars.githubusercontent.com/u/8467740?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtamolda","html_url":"https://github.com/vojtamolda","followers_url":"https://api.github.com/users/vojtamolda/followers","following_url":"https://api.github.com/users/vojtamolda/following{/other_user}","gists_url":"https://api.github.com/users/vojtamolda/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtamolda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtamolda/subscriptions","organizations_url":"https://api.github.com/users/vojtamolda/orgs","repos_url":"https://api.github.com/users/vojtamolda/repos","events_url":"https://api.github.com/users/vojtamolda/events{/privacy}","received_events_url":"https://api.github.com/users/vojtamolda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-12-18T16:44:02Z","updated_at":"2016-01-21T00:57:54Z","closed_at":"2016-01-21T00:43:12Z","pull_request":{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/pulls/45","html_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/45","diff_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/45.diff","patch_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/45.patch"},"body":"During one of my projects I run out of pins on my RFDuino and two precious pins normally taken by serial port had to yield to more important purposes. Lack of serial port makes logging and debugging a bit of a challenge...\r\n\r\nSo, I wrote a subclass of `Stream` and `BLEPeripheral` that implements NUS (Nordic UART Service) - roughly following [this](https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00078.html). With a little bit of `#define` magic *nRF Toolbox* and *Bluefruit LE* iOS/Android apps can become very handy wireless serial monitors.\r\n\r\nI think this may be useful to others as well, so I moved the  `BLESerial` class to the library directory and created a simple `uart.ino` example.\r\n\r\n@sandeepmistry, do you think it's worth merging? In a way the functionality is similar to [`examples/RedBearLab/SimpleChat/SimpleChat.ino`](https://github.com/vojtamolda/BLEPeripheral/blob/master/examples/RedBearLab/SimpleChat/SimpleChat.ino) and I'm not 100% sure."},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/comments/173416561","html_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/pull/45#issuecomment-173416561","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/45","id":173416561,"user":{"login":"vojtamolda","id":8467740,"avatar_url":"https://avatars.githubusercontent.com/u/8467740?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtamolda","html_url":"https://github.com/vojtamolda","followers_url":"https://api.github.com/users/vojtamolda/followers","following_url":"https://api.github.com/users/vojtamolda/following{/other_user}","gists_url":"https://api.github.com/users/vojtamolda/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtamolda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtamolda/subscriptions","organizations_url":"https://api.github.com/users/vojtamolda/orgs","repos_url":"https://api.github.com/users/vojtamolda/repos","events_url":"https://api.github.com/users/vojtamolda/events{/privacy}","received_events_url":"https://api.github.com/users/vojtamolda/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T00:57:54Z","updated_at":"2016-01-21T00:57:54Z","body":"@sandeepmistry My pleasure. BTW I think, I was the one on vacation, delaying the whole thing :-)\r\n\r\nThanks for the few other changes. I completely missed those.\r\n"}}