PaulS:
There is NOTHING in that snippet that convinces me that the message being sent is anything other than "hello world".
I KNOW that the example was not formatted that crappily. Why did you randomly add and/or remove tabs to make the code look like shit?
byte msg[0];
An array that can hold nothing. How the f**k is that supposed to be useful?
char recieved = acc.read(msg, sizeof(msg), 1);
You just shit on memory you don't own.
First point you are right i just need to send a string doesn't matter what string is.
second point i was wondering the same m not able to grasp the arduino code too...??
however when i send a single digit byte 1 or 0.it functions properly..??
sorry if i have not formatted properly.
"I KNOW that the example was not formatted that crapily. Why did you randomly add and/or remove tabs to make the code look like shit?"
also m sorry i dont understand what are you saying why are you getting angry,some context maybe..?? i just used replaced it with char .m not making the code look shit why are you getting so insecure m saying its my modified code.that code is fantastic and able to run led with 1 byte data but my question still stands what if i need to send more...i tried a byte array [128] size it still now works.it will be also helpfull if can explain the acc.read line.