This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Need help with implementating s110 and s120 pair of devices

Hi,

I am a little confuse at the moment and wondering if anyone would have any insight on the matter.

I am making a pair of device with s110 and s120. So the s120 will scan and the s110 will advertise. I needed the the server to be the s130 and the client to be the s110 device. So in other word the s120 has the data that the s110 needs but the s120 will initiate the connection.

My question is who would the implementation be? Lets say i am trying to make s110 get battery info from the s120. So the s120 would have the server code and the s110 would have the client code.
With bas and bas_c as example: bas has characteristic setting. This would be in the s120. bas_c has db_discovery. Would s110 be able to do discovery of service on the s120? I have been using it where the s120 is the client and the s110 is the server. But the s110 is advertising the service.

Would I have to make another service for the s110 to advertise to have the s120 look for since it is not actually advertising the battery service.

I need the battery from the s120 to be able to be sent to multiple s110 also would this implementation work?

Hope that makes sense. To sum it up. Two device s110 and s120. s120 has data that s110 want and s120 will send out notification when something change. Just trying to figure out a way to implement it.

Right now I have it as s110 advertising and s120 use that to connect and just sending out write command when a value change. But the read value from the s110 is giving wrong value sometime.

Thank you very much

Related