Hallo Kollegen,
habe ein Problem .... hmmm HERAUSforderung:
habe einen array/string angelegt (80x3),
Code: [Select]
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
};
es beinhaltet Daten, als "text" also sowas
S_BINARY
V_STATUS
test switch
alle dreispalten in jeder Zeile werden zum aufrufen anderer Funktionen
gebraucht (Siehe unten) z.B. funktion
Code: [Select]
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
soooo und jetzt kommt das Problem!!!!
Ich kriege die Daten aus dem Array /String nicht raus...
bei dieser Funktion:
Code: [Select]
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_[1], iomodus[3], true);_
_}*_
Bekomme ich Fehler:
Code: [Select]
cannot convert 'String' to 'uint8_t {aka unsigned char}' for argument
'2' to 'void present(uint8_t, uint8_t, const char, bool)'*
Sass jetzt mehr als 10 Stunden dran und kein Erfolg!
Bitte um Hilfe!!!!