- Newest
- Most votes
- Most comments
Based on your issue with BatchPutPropertyValues in IoT TwinMaker, I can identify a few key problems:
The main issue appears to be that you're using BatchPutPropertyValues which is specifically designed for time-series data. Even though you've set isTimeSeries: false in your component type definition, the BatchPutPropertyValues API operation is inherently for time-series properties and requires connector functions to be defined.
When you include a timestamp in your property values and use BatchPutPropertyValues, IoT TwinMaker is treating this as a time-series write operation, which requires a DataWriter connector to be configured. This explains the "No connector functions defined for request" error you're receiving.
For non-time-series properties that are stored internally in IoT TwinMaker (where both isTimeSeries: false and isStoredExternally: false), you should not be using BatchPutPropertyValues at all. The BatchPutPropertyValues API is specifically designed for writing time-series data points to properties.
Instead, for updating non-time-series properties, you should use the UpdateEntity API to update the component property values directly. This approach doesn't require connector functions since you're directly updating the entity's properties rather than writing time-series data points.
In your component type definition, since you've correctly set isTimeSeries: false and isStoredExternally: false for the LevelPercent property, you should be able to update this property using UpdateEntity rather than BatchPutPropertyValues.
The presence of the timestamp in your property values is likely causing IoT TwinMaker to interpret this as a time-series write operation, even though the property is defined as non-time-series. For non-time-series properties, you should omit the timestamp entirely when updating the property value.
Sources
BatchPutPropertyValues - AWS IoT TwinMaker
AWS IoT TwinMaker data connectors - AWS IoT TwinMaker
DataValue - AWS IoT TwinMaker
answered 10 months ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
