@@ -637,11 +637,11 @@ class ThingsBoardSized {
637637 // Telemetry API
638638
639639 // / @brief Attempts to send telemetry data with the given key and value of the given type
640- // / @tparam T Type of the data value we want to send
640+ // / @tparam T Type of the passed value
641641 // / @param key Key of the key value pair we want to send
642642 // / @param value Value of the key value pair we want to send
643643 // / @return Whether sending the data was successful or not
644- template <class T >
644+ template <typename T>
645645 inline bool sendTelemetryData (const char *key, T value) {
646646 return sendKeyValue (key, value);
647647 }
@@ -811,45 +811,45 @@ class ThingsBoardSized {
811811 // Attribute API
812812
813813 // / @brief Attempts to send attribute data with the given key and value of the given type
814- // / @tparam T Type of the data value we want to send
814+ // / @tparam T Type of the passed value
815815 // / @param key Key of the key value pair we want to send
816816 // / @param value Value of the key value pair we want to send
817817 // / @return Whether sending the data was successful or not
818- template <class T >
819- inline bool sendAttributeData (const char *attrName , T value) {
820- return sendKeyValue (attrName , value, false );
818+ template <typename T>
819+ inline bool sendAttributeData (const char *key , T value) {
820+ return sendKeyValue (key , value, false );
821821 }
822822
823823 // / @brief Attempts to send integer attribute data with the given key and value
824824 // / @param key Key of the key value pair we want to send
825825 // / @param value Value of the key value pair we want to send
826826 // / @return Whether sending the data was successful or not
827- inline bool sendAttributeInt (const char *attrName , int value) {
828- return sendKeyValue (attrName , value, false );
827+ inline bool sendAttributeInt (const char *key , int value) {
828+ return sendKeyValue (key , value, false );
829829 }
830830
831831 // / @brief Attempts to send boolean attribute data with the given key and value
832832 // / @param key Key of the key value pair we want to send
833833 // / @param value Value of the key value pair we want to send
834834 // / @return Whether sending the data was successful or not
835- inline bool sendAttributeBool (const char *attrName , bool value) {
836- return sendKeyValue (attrName , value, false );
835+ inline bool sendAttributeBool (const char *key , bool value) {
836+ return sendKeyValue (key , value, false );
837837 }
838838
839839 // / @brief Attempts to send float attribute data with the given key and value
840840 // / @param key Key of the key value pair we want to send
841841 // / @param value Value of the key value pair we want to send
842842 // / @return Whether sending the data was successful or not
843- inline bool sendAttributeFloat (const char *attrName , float value) {
844- return sendKeyValue (attrName , value, false );
843+ inline bool sendAttributeFloat (const char *key , float value) {
844+ return sendKeyValue (key , value, false );
845845 }
846846
847847 // / @brief Attempts to send string attribute data with the given key and value
848848 // / @param key Key of the key value pair we want to send
849849 // / @param value Value of the key value pair we want to send
850850 // / @return Whether sending the data was successful or not
851- inline bool sendAttributeString (const char *attrName , const char *value) {
852- return sendKeyValue (attrName , value, false );
851+ inline bool sendAttributeString (const char *key , const char *value) {
852+ return sendKeyValue (key , value, false );
853853 }
854854
855855 // / @brief Attempts to send aggregated attribute data
@@ -1845,7 +1845,7 @@ class ThingsBoardSized {
18451845 }
18461846
18471847 // / @brief Attempts to send a single key-value pair with the given key and value of the given type
1848- // / @tparam T Type of the data value we want to send
1848+ // / @tparam T Type of the passed value
18491849 // / @param key Key of the key value pair we want to send
18501850 // / @param value Value of the key value pair we want to send
18511851 // / @param telemetry Whether the data we want to send should be sent as an attribute or telemetry data value
0 commit comments