Hi,
I wanted to know what is the recommended way of data transfer through ble if there are multiple sensors. Is Creating one service with multiple characteristics a good way or creating multiple services with one characteristic each the best option.
Hi,
I wanted to know what is the recommended way of data transfer through ble if there are multiple sensors. Is Creating one service with multiple characteristics a good way or creating multiple services with one characteristic each the best option.
That really depends. There isn't going to be any performance differences, so usually your best bet is to group them logically according to your needs. Both options are equally valid, but if you have some sensors that are somehow logically tied together then probably put them in a single service, otherwise having a service for each sensor is also fine.
That really depends. There isn't going to be any performance differences, so usually your best bet is to group them logically according to your needs. Both options are equally valid, but if you have some sensors that are somehow logically tied together then probably put them in a single service, otherwise having a service for each sensor is also fine.