c# - Bluetooth LE CanUpdate Characteristic property -


i building xamarin.formscross platform mobile app, uses monkey.robotics bluetoth low energy functionality. connecting mbed based implimentation of custom gatt service.

in xamarin c#, triggers characteristic.canupdate property in monkey.robotics?

this standard example c# based on:

if (characteristic.canupdate) {                 characteristic.valueupdated += (s, e) => {                     debug.writeline("characteristic.valueupdated");                     device.begininvokeonmainthread( () => {                         updatedisplay(characteristic);                     });                     isbusy = false; // spin until first result received                 };                 isbusy = true;                 characteristic.startupdates();             } 

this has been working, since changed own custom gatt service connecting to, canupdate property false. property , how triggered? me debugging gatt service code.

thanks

monkey.robotics open source, can yourself

canupdate implemented this:

public bool canupdate {    {     return (this.properties & characteristicpropertytype.notify) != 0;   } } 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -