Inkeeping with this, I'm thinking that the MyNewt iOS/Mac OS Apps should have a 
way of being informed by the MyNewt device via their published UUIDs what kind 
of data to expect. UINT_32, UINT_64, FLOAT_TRIPLET, etc. because, as of right 
now, that's not really possible. 

I'm open to suggestions as to how to do that. 

One way is to adopt the BLE ENS Profile for Environmental Sensing. Going this 
route makes us BLE Compliant, but it would also add a bit of overhead on the 
device itself as each device would be required to advertise a Device 
Information Service Characteristic -- and publish a service characteristic for 
each additional service under this service -- , a Battery Service 
Characteristic and a set of Environmental Service Characteristics -- one for 
each sensor type, each of which would then carry data.

Alternatively, we could advertise a "MyNewt Service" and under that, inslude 
characteristic UUIDs that simply point to other services advertised, each of 
which would then advertise a set of characteristics such as "Sensor Name", 
"Sensor Data Type" and "Sensor Data Value(s)" Again, is does add some overhead 
but it does make addige a sensor a bit easier as you simply need to add the 
sensor and it's service UIOD to the overall services advertised, and then add 
the sensor service and it's associated characteristics. 

dg

> On Dec 18, 2016, at 4:43 PM, Sterling Hughes <[email protected]> wrote:
> 
> Hi,
> 
> this all sounds good to me.  I’ll make the changes to generic_accel* and the 
> sensor API, unless somebody beats me to it.
> 
> Sterling

--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin 
<http://linkedin.com/in/davidgsimmons> • Twitter 
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.  
* If you cannot read the PGP.sig attachment, please go to 
 * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
 * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!

There are only 2 hard things in computer science: Cache invalidation, naming 
things, and off-by-one errors.


Reply via email to