Send temperature

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Send temperature

935 Views
Nicolas_martel
Contributor I
Hi all,
 
I use codewarrior 5.9
 
With a SRB (end point) I get temperature. The temperature sensor is a LM16B.
But when I send temperature (22°C for exemple) to my NCB (coordinator), my NCB receives 65°C.
Why?
In debug mode with SRB my data is 22.
In debug mode with NCB my data is 65 ?!
Do you help me please?
Why it isn't the same data? 
 
my program in SRB :
  test=ReadTemperature();
  ASL_MatchDescriptor_req( NULL, 0x0000, AF_FindEndPointDesc(appEndPoint) );
  ReportData();
 
 
_Nicolas
 
 
Labels (1)
0 Kudos
1 Reply

309 Views
Nicolas_martel
Contributor I
My problem is when I send (end device) data -> data is a signed char.
But when I receive (coordinator) data -> data is a unsigned char.
So, It isn't the good value
 
Do you help me ?
0 Kudos