{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/42","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/42/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/42/events","html_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/42","id":122323615,"number":42,"title":"broadcasting an Eddystone URL and running a GATT service simultaneously via RFDuino","user":{"login":"matthewsibigtroth","id":6209944,"avatar_url":"https://avatars.githubusercontent.com/u/6209944?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewsibigtroth","html_url":"https://github.com/matthewsibigtroth","followers_url":"https://api.github.com/users/matthewsibigtroth/followers","following_url":"https://api.github.com/users/matthewsibigtroth/following{/other_user}","gists_url":"https://api.github.com/users/matthewsibigtroth/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewsibigtroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewsibigtroth/subscriptions","organizations_url":"https://api.github.com/users/matthewsibigtroth/orgs","repos_url":"https://api.github.com/users/matthewsibigtroth/repos","events_url":"https://api.github.com/users/matthewsibigtroth/events{/privacy}","received_events_url":"https://api.github.com/users/matthewsibigtroth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T17:26:55Z","updated_at":"2015-12-20T15:11:49Z","closed_at":null,"body":"Hello!\r\nIn the code below I am attempting to use EddystoneBeacon as both a URL broadcaster and a GATT service on an RFDuino. However it appears that the line\r\n\r\n`eddystoneBeacon.setAdvertisedServiceUuid(ledService.uuid());`\r\n\r\nprevents the URL from being broadcast. If I comment it out, the URL broadcasts but the service is not discoverable (the latter makes sense, it being an advertisement call). Curious if this has been experienced before, or if this isn't the proper way to combine the two features?\r\nThanks!\r\n\r\n```\r\n#include <SPI.h>\r\n#include <EddystoneBeacon.h>\r\n\r\n#define EDDYSTONE_BEACON_REQ   6\r\n#define EDDYSTONE_BEACON_RDY   7\r\n#define EDDYSTONE_BEACON_RST   4\r\nEddystoneBeacon eddystoneBeacon = EddystoneBeacon(EDDYSTONE_BEACON_REQ, EDDYSTONE_BEACON_RDY, EDDYSTONE_BEACON_RST);\r\nBLEService ledService = BLEService(\"19b10000e8f2537e4f6cd104768a1214\");\r\nBLECharCharacteristic switchCharacteristic = BLECharCharacteristic(\"19b10001e8f2537e4f6cd104768a1214\", BLERead | BLEWrite);\r\n\r\nvoid setup() {\r\n  initBeacon();\r\n}\r\n\r\nvoid initBeacon() {\r\n  Serial.begin(115200);\r\n  #if defined (__AVR_ATmega32U4__)\r\n  delay(5000);  //5 seconds delay for enabling to see the start up comments on the serial board\r\n  #endif\r\n\r\n  eddystoneBeacon.setConnectable(true);\r\n  eddystoneBeacon.setLocalName(\"CANDY BOY\");\r\n  eddystoneBeacon.setAdvertisedServiceUuid(ledService.uuid());\r\n  eddystoneBeacon.addAttribute(ledService);\r\n  eddystoneBeacon.addAttribute(switchCharacteristic);\r\n  eddystoneBeacon.begin(-18, \"https://example.com\");\r\n}\r\n\r\nvoid loop() {\r\n  eddystoneBeacon.loop();\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/comments/166127119","html_url":"https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/42#issuecomment-166127119","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-BLEPeripheral/issues/42","id":166127119,"user":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T15:11:49Z","updated_at":"2015-12-20T15:11:49Z","body":"@matthewsibigtroth this is a limitation of the ```BLEPeripheral``` API only one service UUID can be advertised. This was done to keep things simple on the nRF8001 initially, as well as the API.\r\n\r\nThe Eddystone service UUID is set in the constructor of ```EddystoneBeacon```, maybe it should be moved to ```begin``` so user's can't override it.\r\n\r\nhttps://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/EddystoneBeacon.cpp#L39"}}