Skip to Main Content
Cumulocity IoT Feedback Portal
Status Unlikely to support
Created by Neil C
Created on Nov 14, 2022

Cumulocity SNMP Protocols should allow explicit casting of strings to integer/float

We can currently manually configure a SNMP Protocol component through the Device Management application, which allows us to request a specific OID from a SNMP device, and map it to a measurement (or event/alarm) in Cumulocity. However, if the device sends the measurement value as a string, the Cumulocity REST API rejects the measurement because the measurement fragment only permits integer or floating point values.

Ideally, alongside each OID entry in the Protocol "Component", there would be a tick-box to "force" the value to either integer or floating-point/decimal. The Agent would then implement this.

  • Attach files
  • Admin
    Aaron Raab
    Reply
    |
    Apr 21, 2023

    Hi Neil,

    thank you for raising this point. Unfortunately, we currently don’t have sufficient capacities to take care of it within the next releases. However, as this module has been published as an open-source component, you and your colleagues could access the code and make changes for which you could then raise a pull request. Here is the link to the corresponding repository:

    https://github.com/SoftwareAG/cumulocity-examples/tree/develop/snmp

    Would this be a viable option for you? Please let me know in case of any upcoming questions.

    Best regards,
    Aaron