Community Member•3/26/2024, 11:34:35 PM
👋
What do you mean by "MB"? :)
Community Member•3/26/2024, 11:35:19 PM
Megabytes
Community Member•3/26/2024, 11:35:52 PM
Depends on the end device - some are sending new infos every second where as the Apple Watch e.g. sends only ever 5 secs
Community Member•3/26/2024, 11:37:54 PM
Or do you mean via the Websocket API?
Community Member•3/26/2024, 11:43:18 PM
yeah it also helps, cuz I need an aprox cuz we are gonna use the SDK on a shopping stand and we must pay for the internet use, so we are trying to figure out how much MBs the API uses to have a clear value to hire
Community Member•3/26/2024, 11:49:23 PM
Do you know which devices you gonna use?
Then i can tell it exactly :)
Community Member•3/26/2024, 11:50:47 PM
Like Apple Watch, Garmin, chestbelts with which app (iOS / Android), etc
Community Member•3/26/2024, 11:51:58 PM
Xiaomi Smart Band 7 + Samsung tab A7
Community Member•3/26/2024, 11:52:05 PM
android
Community Member•3/26/2024, 11:52:27 PM
Did you tested that they pair already? Im unsure about that 😅
Community Member•3/26/2024, 11:52:49 PM
I'm already on it
Community Member•3/26/2024, 11:53:14 PM
Bcs we only have experimental Xiaomi support in the iOS app
Community Member•3/26/2024, 11:53:27 PM
we are testing different solutions and this SDK fits our needs
Community Member•3/26/2024, 11:53:44 PM
Ye - but you also need the correct device :)
Community Member•3/26/2024, 11:54:12 PM
well lets say Band 7 + iphone 14
Community Member•3/26/2024, 11:55:06 PM
Could be working
Community Member•3/26/2024, 11:58:11 PM
ok confirmed then, we are gonna use an 8th gen ipad with the band 7
Community Member•3/26/2024, 11:58:32 PM
do you know an aprox on bandwidth use knowing this config?
Community Member•3/27/2024, 12:05:37 AM
Okay I got the following data:
```
Every time you join the channel (a different ID):
{"topic":"hr:1234","event":"phx_join","payload":{},"ref":0}
59 Bytes from client to server
As response the client receives the following data:
{"event":"phx_reply","payload":{"response":{},"status":"ok"},"ref":0,"topic":"hr:1234"}
Which count in 87 Bytes from server to client
The update event (for a one digit heartbeat):
{"event":"hr_update","payload":{"hr":0},"ref":null,"topic":"hr:1234"}
Contains 69 Bytes from server to client (every 5 seconds)
For two digits:
{"event":"hr_update","payload":{"hr":10},"ref":null,"topic":"hr:1234"}
Contains 70 Bytes from server to client (every 5 seconds)
For three digits:
{"event":"hr_update","payload":{"hr":100},"ref":null,"topic":"hr:1234"}
Contains 71 Bytes from server to client (every 5 seconds)
The keep-alive packet:
{"topic":"phoenix","event":"heartbeat","payload":{},"ref":0}
Contains 60 Bytes from client to server (every 10 seconds)
As response the client receives the following data:
{"event":"phx_reply","payload":{"response":{},"status":"ok"},"ref":0,"topic":"phoenix"}
Contains 87 Bytes from server to client
```
Community Member•3/27/2024, 12:06:38 AM
So you can calculate the approximated amount of bytes per session time on yourself :)
Community Member•3/27/2024, 12:06:45 AM
thx a lot
Community Member•3/27/2024, 12:06:51 AM
its really helpful
Community Member•3/27/2024, 12:07:05 AM
https://tenor.com/view/welcome-gif-23701526
Community Member•3/27/2024, 12:09:31 AM
Are you using the Unity SDK, Unreal Engine or Godot?
Community Member•3/27/2024, 12:10:17 AM
UNITY
Community Member•3/27/2024, 12:10:31 AM
Okay from there i took the messages - should be all correct then :)
Community Member•3/27/2024, 12:10:59 AM
nice, thx a lot for the help, really useful info and great support
Community Member•3/27/2024, 12:11:45 AM
https://tenor.com/view/dog-beer-happy-dog-party-dog-party-puppy-lets-celebrate-gif-27139602
Community Member•3/27/2024, 12:11:54 AM
you deserve a cold beer buddy
Community Member•3/27/2024, 12:19:52 AM
https://tenor.com/view/ill-take-it-gif-11482798
Community Member•3/27/2024, 11:38:40 AM
<@325108360263368704> <@120250275477979136> just want to add, that the Xiaomi MiBand connection is experimental. Especially when it comes to version 7 it depends on the OS version of the band if a connection is possible. So I would suggest to use any other device to have a 100% reliable connection.