microsoft / ros_azure_iothub

This repository contains a ROS node for bidirectional communication with IoT Hub
38 stars 30 forks source link

[noetic] Skip the keys with dots for reported properties #30

Closed seanyen closed 3 years ago

seanyen commented 3 years ago

ros_type_instrospection will be using the format of xxx.0, xxx.1, xxx.2 and xxx.<number of array> as keys to describe the array data type. Currently we didn't do any special handling and once it is passed to device twin, it may cause bad request 400 error, because device twin doesn't support key with dots.

This pull request is to skip this data types to avoid the bad request error.

For the more proper implementation, we should consider to construct a JSON proper structure. https://github.com/microsoft/ros_azure_iothub/issues/29