{"action":"created","issue":{"url":"https://api.github.com/repos/thingsboard/thingsboard/issues/578","repository_url":"https://api.github.com/repos/thingsboard/thingsboard","labels_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/578/comments","events_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/578/events","html_url":"https://github.com/thingsboard/thingsboard/issues/578","id":296089788,"number":578,"title":"Same sensor data pushed from different (gateway) device","user":{"login":"m-menon","id":10776430,"avatar_url":"https://avatars1.githubusercontent.com/u/10776430?v=4","gravatar_id":"","url":"https://api.github.com/users/m-menon","html_url":"https://github.com/m-menon","followers_url":"https://api.github.com/users/m-menon/followers","following_url":"https://api.github.com/users/m-menon/following{/other_user}","gists_url":"https://api.github.com/users/m-menon/gists{/gist_id}","starred_url":"https://api.github.com/users/m-menon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-menon/subscriptions","organizations_url":"https://api.github.com/users/m-menon/orgs","repos_url":"https://api.github.com/users/m-menon/repos","events_url":"https://api.github.com/users/m-menon/events{/privacy}","received_events_url":"https://api.github.com/users/m-menon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-10T10:09:01Z","updated_at":"2018-02-17T16:02:18Z","closed_at":null,"author_association":"NONE","body":"hi,, firstly thanks for the wonderful ThingsBoard. It is cool! Recently started on Thingsboard and I need some advice on this scenario that I am facing. I have a bunch of Bluetooth beacons from which I am collecting data using a few Raspberry Pi gateways. These gateways are authenticated by the access token ( as explained in getting started tutorials ). Now these beacons as they are moved around, will come in proximity of another gateway which collects and posts the data to ThingsBoard. So on the ThingsBoard side how do I set this up where the sensor data ( json dumps ) can come from different devices ( gateways )? I have 4 gateways set up and I can add widgets but I need to choose the entity/gateway. So in short the same beacon data can be posted by either Device A, Device B or Device C .. or even Device D. All these devices A, B, C and D use access tokens. Thanks.. Cheers"},"comment":{"url":"https://api.github.com/repos/thingsboard/thingsboard/issues/comments/366450780","html_url":"https://github.com/thingsboard/thingsboard/issues/578#issuecomment-366450780","issue_url":"https://api.github.com/repos/thingsboard/thingsboard/issues/578","id":366450780,"user":{"login":"mp-loki","id":2621146,"avatar_url":"https://avatars3.githubusercontent.com/u/2621146?v=4","gravatar_id":"","url":"https://api.github.com/users/mp-loki","html_url":"https://github.com/mp-loki","followers_url":"https://api.github.com/users/mp-loki/followers","following_url":"https://api.github.com/users/mp-loki/following{/other_user}","gists_url":"https://api.github.com/users/mp-loki/gists{/gist_id}","starred_url":"https://api.github.com/users/mp-loki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mp-loki/subscriptions","organizations_url":"https://api.github.com/users/mp-loki/orgs","repos_url":"https://api.github.com/users/mp-loki/repos","events_url":"https://api.github.com/users/mp-loki/events{/privacy}","received_events_url":"https://api.github.com/users/mp-loki/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T16:02:18Z","updated_at":"2018-02-17T16:02:18Z","author_association":"MEMBER","body":"Hi @m-menon! \r\nThe ThingsBoard Gateway provisions devices to ThingsBoard, so the telemetry is collected by a Device entity, not a Gateway entity. [This example](https://thingsboard.io/docs/iot-gateway/mqtt/) describes how to set up a gateway and send the telemetry to a device named 'SN-001'. The trick is that in that scenario the device publishes data to 'sensor/SN-001/temperature' topic on the mqtt broker, Gateway subscribes to this topic and sends data to ThingsBoard. on ThingsBoard data is displayed under SN-001 device. You can easily modify this scenario by, say, you have two MQTT brokers A and B and two gateways  - Gateway A and Gateway B, each subscribed to a corresponding topic. The device SN-001 can publish telemetry to either A or B, but use the same topic, say 'sensor/SN-001/temperature' (as in the example). In this case, both  Gateway A and Gateway B will collect the data and publish it to the same SN-001 device in TB."}}
{"actor":{"display_login":"mp-loki"}}