示例#1
0
 public QueryParams(IEnumerable <GattDeviceService> services, Guid serviceGuid, SensorData sensorData)
 {
     Services    = services;
     ServiceGuid = serviceGuid;
     SensorData  = sensorData;
 }
示例#2
0
 private void OnFirmware(byte[] bytes, SensorData sensorData)
 {
     sensorData.Battery = Convert.ToInt32(bytes[0]);
     sensorData.Verison = Encoding.ASCII.GetString(bytes, 2, 5);
 }
示例#3
0
 private void OnCommand(byte[] data, SensorData sensorData)
 {
 }
示例#4
0
 private void OnDeviceName(byte[] bytes, SensorData sensorData)
 {
     sensorData.Name = Encoding.ASCII.GetString(bytes, 0, bytes.Length);
 }
示例#5
0
 private void OnSerial(byte[] bytes, SensorData sensorData)
 {
     sensorData.SerialNumber = BitConverter.ToString(bytes).Replace("-", string.Empty);;
 }