Send temperature

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Send temperature

940件の閲覧回数
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 返信

314件の閲覧回数
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 件の賞賛