HI,
i just created an Array/String to have a set of data, which i can share with functions later on, and which show me which pins are set and how they set...
This array/string is (80x3),
String iomodus[80][3] = {
//"presentation", "set/req", "description"
{„0“, “0“, “free“},
{„0“,“0“,“free“},
{"S_BINARY","V_STATUS","test switch"}, //D3
{„0“,“0“,“free“}, //D4
...
{„0“,“0“,“free“}, //D80
};
the data insight is TEXT like
S_BINARY
V_STATUS
test switch
all 3 of column are used by functions which expecting the 1st and 2nd column as uint8_t and the 3d as an char
present(uint8_t childSensorId, uint8_t sensorType, const char
*description, bool enableAck)
i= CHILD_ID
iomodus*[1st COLUMN] = presentation ID*
iomodus*[3rd COLUMN] = description as Text*
ACK= true
so and now i have a problem!!!!!!!
i cant get the data out of the Array!
Tried this function :
```
*void presentation()
{
// Send the sketch version information to the gateway and Controller
sendSketchInfo("Relay+Max31855", "1.0");
for (int i = 0; i<70; i++) //all Ports D0 bis D69
//present(uint8_t childSensorId, uint8_t sensorType, const char
description, bool enableAck)
present(i, iomodus[i][1], iomodus[i][3], true);
}
*_ _*BUT get Error:*_ _*
cannot convert 'String' to 'uint8_t {aka unsigned char}' for argument
'2' to 'void present(uint8_t, uint8_t, const char, bool)'
_```*_
ALready sitting whole nigt
Please HELP!!!