Count number of bits from data.
<p>actually I am working on Java based Healthcare application. My java application must connect with Healthcare sensor device with the help of Bluetooth. This sensor module done by some other people , We transfer data using DatagramPacket. even I don't know what format of data they are send to me. so now I want to know, how can I find, whether the incoming data are 8-bit data or 16-bit data. and also I want to know how many bits are there , means I want to count the bits. kindly some one help me. Thanks in advance.</p>
