سؤال

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