[
{
"name": "cls:AllAttributes4Functions",
"functions": [
{
"functionId": "fBasicFunction",
"type": "BasicFunction",
"vendorAttributes":
[
{"scope":"configuration", "type": "AttributeBinary", "name": "Binary"},
{"scope":"configuration", "type": "AttributeBoolean", "name": "Boolean"},
{"scope":"configuration", "type": "AttributeBooleanState", "name": "BooleanState"},
{"scope":"configuration", "type": "AttributeCabinetActuatingType", "name": "CabinetActuatingType"},
{"scope":"configuration", "type": "AttributeCabinetSegmentsConfiguration", "name": "CabinetSegmentsConfiguration"},
{"scope":"configuration", "type": "AttributeCCTColorState", "name": "CCTColorState"},
{"scope":"configuration", "type": "AttributeCommand", "name": "Command"},
{"scope":"configuration", "type": "AttributeContentsType", "name": "ContentsType"},
{"scope":"configuration", "type": "AttributeDateTime", "name": "DateTime"},
{"scope":"configuration", "type": "AttributeFactorSense", "name": "FactorSense"},
{"scope":"configuration", "type": "AttributeFloat", "name": "Float"},
{"scope":"configuration", "type": "AttributeFloatKVPArray", "name": "FloatKVPArray"},
{"scope":"configuration", "type": "AttributeFloatState", "name": "FloatState"},
{"scope":"configuration", "type": "AttributeGasName", "name": "GasName"},
{"scope":"configuration", "type": "AttributeInteger", "name": "Integer"},
{"scope":"configuration", "type": "AttributeIntegerState", "name": "IntegerState"},
{"scope":"configuration", "type": "AttributeLevelAndCCTColorState", "name": "LevelAndCCTColorState"},
{"scope":"configuration", "type": "AttributeLevelAndRGBWAFColorState", "name": "LevelAndRGBWAFColorState"},
{"scope":"configuration", "type": "AttributeLevelAndXYColorState", "name": "LevelAndXYColorState"},
{"scope":"configuration", "type": "AttributeLevelState", "name": "LevelState"},
{"scope":"configuration", "type": "AttributeLocalOverride", "name": "LocalOverride"},
{"scope":"configuration", "type": "AttributeLocation", "name": "Location"},
{"scope":"configuration", "type": "AttributeLuminaireConnectionType", "name": "LuminaireConnectionType"},
{"scope":"configuration", "type": "AttributeMountingOption", "name": "MountingOption"},
{"scope":"configuration", "type": "AttributeOrientation", "name": "Orientation"},
{"scope":"configuration", "type": "AttributeParkingSlotDataArray", "name": "ParkingSlotDataArray"},
{"scope":"configuration", "type": "AttributeParkingSlotOccupancyStatus", "name": "ParkingSlotOccupancyStatus"},
{"scope":"configuration", "type": "AttributePercent", "name": "Percent"},
{"scope":"configuration", "type": "AttributePositionedTextState", "name": "PositionedTextState"},
{"scope":"configuration", "type": "AttributePowerSource", "name": "PowerSource"},
{"scope":"configuration", "type": "AttributeRGBState", "name": "RGBState"},
{"scope":"configuration", "type": "AttributeRGBWAFColorState", "name": "RGBWAFColorState"},
{"scope":"configuration", "type": "AttributeRoadUser", "name": "RoadUser"},
{"scope":"configuration", "type": "AttributeState", "name": "State"},
{"scope":"configuration", "type": "AttributeString", "name": "String"},
{"scope":"configuration", "type": "AttributeStringArray", "name": "StringArray"},
{"scope":"configuration", "type": "AttributeSupplyType", "name": "SupplyType"},
{"scope":"configuration", "type": "AttributeTextState", "name": "TextState"},
{"scope":"configuration", "type": "AttributeTrafficDirection", "name": "TrafficDirection"},
{"scope":"configuration", "type": "AttributeUri", "name": "Uri"},
{"scope":"configuration", "type": "AttributeVelocity", "name": "Velocity"},
{"scope":"configuration", "type": "AttributeWindDirection", "name": "WindDirection"},
{"scope":"configuration", "type": "AttributeXYColorState", "name": "XYColorState"}
]
},
{
"functionId": "fLuminaireAssetFunction",
"type": "LuminaireAssetFunction",
"attributes": [
{
"name": "bracketTypeAddress",
"unit": "meters"
}
]
},
{
"functionId": "fLampMonitorFunction",
"type": "LampMonitorFunction",
"attributes": []
},
{
"functionId": "fCommunicationFunction",
"type": "CommunicationFunction",
"attributes": []
}
]
},
// {
// "name": "cls:Luminaire",
// "functions": [
// {
// "functionId": "fBasicFunction",
// "type": "BasicFunction",
// "attributes":[
// ]
// },
// {
// "functionId": "fLuminaireAssetFunction",
// "type": "LuminaireAssetFunction",
// "attributes": [
// {
// "name": "bracketTypeAddress",
// "unit": "meters"
// }
// ]
// }
// ]
// }
]curl --location -g --request POST 'https://iot.exati.com.br/staging/talq/device-classes?clientAddress=' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "cls:AllAttributes4Functions",
"functions": [
{
"functionId": "fBasicFunction",
"type": "BasicFunction",
"vendorAttributes":
[
{"scope":"configuration", "type": "AttributeBinary", "name": "Binary"},
{"scope":"configuration", "type": "AttributeBoolean", "name": "Boolean"},
{"scope":"configuration", "type": "AttributeBooleanState", "name": "BooleanState"},
{"scope":"configuration", "type": "AttributeCabinetActuatingType", "name": "CabinetActuatingType"},
{"scope":"configuration", "type": "AttributeCabinetSegmentsConfiguration", "name": "CabinetSegmentsConfiguration"},
{"scope":"configuration", "type": "AttributeCCTColorState", "name": "CCTColorState"},
{"scope":"configuration", "type": "AttributeCommand", "name": "Command"},
{"scope":"configuration", "type": "AttributeContentsType", "name": "ContentsType"},
{"scope":"configuration", "type": "AttributeDateTime", "name": "DateTime"},
{"scope":"configuration", "type": "AttributeFactorSense", "name": "FactorSense"},
{"scope":"configuration", "type": "AttributeFloat", "name": "Float"},
{"scope":"configuration", "type": "AttributeFloatKVPArray", "name": "FloatKVPArray"},
{"scope":"configuration", "type": "AttributeFloatState", "name": "FloatState"},
{"scope":"configuration", "type": "AttributeGasName", "name": "GasName"},
{"scope":"configuration", "type": "AttributeInteger", "name": "Integer"},
{"scope":"configuration", "type": "AttributeIntegerState", "name": "IntegerState"},
{"scope":"configuration", "type": "AttributeLevelAndCCTColorState", "name": "LevelAndCCTColorState"},
{"scope":"configuration", "type": "AttributeLevelAndRGBWAFColorState", "name": "LevelAndRGBWAFColorState"},
{"scope":"configuration", "type": "AttributeLevelAndXYColorState", "name": "LevelAndXYColorState"},
{"scope":"configuration", "type": "AttributeLevelState", "name": "LevelState"},
{"scope":"configuration", "type": "AttributeLocalOverride", "name": "LocalOverride"},
{"scope":"configuration", "type": "AttributeLocation", "name": "Location"},
{"scope":"configuration", "type": "AttributeLuminaireConnectionType", "name": "LuminaireConnectionType"},
{"scope":"configuration", "type": "AttributeMountingOption", "name": "MountingOption"},
{"scope":"configuration", "type": "AttributeOrientation", "name": "Orientation"},
{"scope":"configuration", "type": "AttributeParkingSlotDataArray", "name": "ParkingSlotDataArray"},
{"scope":"configuration", "type": "AttributeParkingSlotOccupancyStatus", "name": "ParkingSlotOccupancyStatus"},
{"scope":"configuration", "type": "AttributePercent", "name": "Percent"},
{"scope":"configuration", "type": "AttributePositionedTextState", "name": "PositionedTextState"},
{"scope":"configuration", "type": "AttributePowerSource", "name": "PowerSource"},
{"scope":"configuration", "type": "AttributeRGBState", "name": "RGBState"},
{"scope":"configuration", "type": "AttributeRGBWAFColorState", "name": "RGBWAFColorState"},
{"scope":"configuration", "type": "AttributeRoadUser", "name": "RoadUser"},
{"scope":"configuration", "type": "AttributeState", "name": "State"},
{"scope":"configuration", "type": "AttributeString", "name": "String"},
{"scope":"configuration", "type": "AttributeStringArray", "name": "StringArray"},
{"scope":"configuration", "type": "AttributeSupplyType", "name": "SupplyType"},
{"scope":"configuration", "type": "AttributeTextState", "name": "TextState"},
{"scope":"configuration", "type": "AttributeTrafficDirection", "name": "TrafficDirection"},
{"scope":"configuration", "type": "AttributeUri", "name": "Uri"},
{"scope":"configuration", "type": "AttributeVelocity", "name": "Velocity"},
{"scope":"configuration", "type": "AttributeWindDirection", "name": "WindDirection"},
{"scope":"configuration", "type": "AttributeXYColorState", "name": "XYColorState"}
]
},
{
"functionId": "fLuminaireAssetFunction",
"type": "LuminaireAssetFunction",
"attributes": [
{
"name": "bracketTypeAddress",
"unit": "meters"
}
]
},
{
"functionId": "fLampMonitorFunction",
"type": "LampMonitorFunction",
"attributes": []
},
{
"functionId": "fCommunicationFunction",
"type": "CommunicationFunction",
"attributes": []
}
]
},
// {
// "name": "cls:Luminaire",
// "functions": [
// {
// "functionId": "fBasicFunction",
// "type": "BasicFunction",
// "attributes":[
// ]
// },
// {
// "functionId": "fLuminaireAssetFunction",
// "type": "LuminaireAssetFunction",
// "attributes": [
// {
// "name": "bracketTypeAddress",
// "unit": "meters"
// }
// ]
// }
// ]
// }
]'{}