Skip to content

Multiple Shimmer Devices

JongChern edited this page Oct 1, 2020 · 1 revision

A Shimmer device is controlled by the Shimmer class. For each shimmer device you want to stream from you will require a Shimmer instance of the device. E.g. for two shimmer devices

Shimmer shimmer1 = new Shimmer(mHandler); Shimmer shimmer2 = new Shimmer(mHandler);

It is advisable to use the same handler to receive messages from the different shimmer instances.

Messages received through the handler are differentiated via the mac address. For instance ObjectCluster has a method getMacAddress() which will return the mac address of the Shimmer device it originated from

Clone this wiki locally