문제

I wanna know a tag's writeable capacity.

What am i doing:

  • subscribing for a message

m_proxdevice.SubscribeForMessage("WriteableTag", OnTagDetect);

  • receive the message

private void OnTagDetect(ProximityDevice sender, ProximityMessage message)

{

   System.Diagnostics.Debug.WriteLine(message.Data.Capacity.ToString());

}

but every time the capacity is just 4. I'm doing something wrong, but what?

Thanks in advance!

도움이 되었습니까?

해결책

message.Data.Capacity is the wrong property.

Use

int writeableSize = System.BitConverter.ToInt32(message.Data.ToArray(), 0);

instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top