Send temperature

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Send temperature

938 次查看
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
 
 
标签 (1)
0 项奖励
1 回复

312 次查看
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 项奖励