Skip to content

Commit

Permalink
[README] mentioning that device properties are not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
peolivei2 committed Mar 21, 2019
1 parent 95b58c7 commit 960345a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -242,7 +242,7 @@ req.body = {
```

## Limitations
This device bridge only forwards messages to IoT Central, and does not send messages back to devices. Due to the unidirectional nature of this solution, `settings` and `commands` will **not** work for devices that connect to IoT Central through this device bridge. To use these features, a device must be connected directly to IoT Central using one of the [Azure IoT device SDKs](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-sdks).
This device bridge only forwards messages to IoT Central, and does not send messages back to devices. Due to the unidirectional nature of this solution, `settings` and `commands` will **not** work for devices that connect to IoT Central through this device bridge. Because device twin operations are also not supported, it's **not** possible to update `device properties` through this setup. To use these features, a device must be connected directly to IoT Central using one of the [Azure IoT device SDKs](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-sdks).

## Package integrity
The template provided here deploys a packaged version of the code in this repository to an Azure
Expand Down

2 comments on commit 960345a

@elies92
Copy link

@elies92 elies92 commented on 960345a Apr 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tried to connect a Sigfox sensor from the sigfox cloud to IoT central through this device bridge. I do receive "messages" sent from the sigfox cloud in my function but there is an error which prevents me from sending the actual data to IoT Central : "the DeviceId must be alphanumeric, in lower case and may content hyphens". But I do not understand why this error is generated knowing that my deviceID follows all the rules.
Hoping that someone could help me.
Thanks.

@peolivei2
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elies92, have you already applied the steps in the README specific for SigFox devices? (https://github.com/Azure/iotc-device-bridge#example-2-connecting-sigfox-devices-through-the-device-bridge)

If so, it's picking up the device Id directly from the payload sent by Sigfox. To see what the transformed payload look like and make sure the device Id is in the correct format, you can add a call to context.log(JSON.stringify(req.body)); right before the call to handleMessage in index.js of the Azure Function. (do not paste the output here as it may contain sensitive data)

Please sign in to comment.