What do you receive from the send line? Is it only one byte of the integer? Have you tried to send the two bytes individually and then reconstitute them?
adwsystems:
What do you receive from the send line? Is it only one byte of the integer? Have you tried to send the two bytes individually and then reconstitute them?
I can't get it working. I try everything. If it will be compiled.. I'm sure I can received them with a professional measurement equipment. That is Not the problem.
Furthermore I get a cheaper Adns sensor to work and send it also before over can.
adwsystems:
What is not working? We can only help with specific issues and details. Lots of information has been provided. What have you tried? How did it fail?
just pass a pointer to your data (e.g. long) case as a byte pointer (i.e. (byte *) & longVar and specify the size of the data in bytes (e.g. sizeof(longVar) or sizeof(longVarArray))