I like to implement a serial communication to a Soladin 600 http://wiki.firestorm.cx/index.php/Soladin
It start with sending over some byte's
0x0000: 16 bit destination address for the packet.
0x0000: 16 bit source address for the packet.
0x0000: 16 bit command ID.
So
TX: 00 00 00 00 C1 00 00 00 C1
RX: 00 00 11 00 C1 F3 00 00 C5
How can I do this without long code like this
void txprobe() {
Serial.write(SourceAdr[0] );
Serial.write(SourceAdr[1]);
Serial.write(DestAdr[0]);
Serial.write(DestAdr[1]);
Serial.write(Probe[0]);
Serial.write(Probe[1]);
I would like that function Concat returns buffer. Maybe with the use of a pointer ??
No. Concat can not return buffer, or a pointer to buffer.
You can't return an array from a function.
buffer is a local variable that goes out of scope when the function ends, so you can't return a pointer to it.
What you can do is pass (by reference) the array that you want the data copied into.
Peter,
I did notice, that the site went offline.
Too bad. I do have a hard copy, that i can pdf. If you sent me your email by PM,
I will post them to you.
About the hardware, that is very simple. I use two resistor and a cut in half telephone connection cable.
I will draw you a diagram aswell.
This is the info soladin reported back on devicestate call.
PV= 86.40V 0.15A
AC= 10W 99.57KW
AC= 50.02Hz 232Volt
DevT= 22C AlarmFlag= 0
Total Operating time= 81105