In the constructor of my class i do some initializations for oid and syntax fields of Vb class objects.
for (int i=0; i<COOLING_ENTRY_NUM; i++) CoolingEntry[i].Valore = new Vb;
CoolingEntry.Valore->set_oid( “18.104.22.168.4.1.54222.214.171.124.0” );
When later I’ve to use this array I find that the Vb setted to sNMP_SYNTAX_INT32 are instead sNMP_SYNTAX_GAUGE32 with value 66.
I know that all the numbers are 32 bits and the only difference in code is between unsigned and signed long but I would like to understand if I’m doing something wrong or simply I’ve to manage all my switch case grouping all number together.