Closed Sergio-tix closed 4 years ago
Сan do this - pass a string in OID ? I've been trying for the third day converting "String" to "Char" different ways, But when I pass the variable to:
snmp.addStringHandler(".1.3.6.1.2.1.1.2.0", &sysObjectID);
That is on this line that the compiler sees errors.
While reading from OID .1.3.6.1.2.1.1.2.0 need to return text "Sensor-Unit". My sketch:
But I get a compilation error:
no matching function for call to 'SNMPAgent::addStringHandler(const char [19], String*)'
Here is all the text from the compiler:
As I understand it, it is necessary to transform String to Char? How to do it right?