clock sync using periodic advertising

I want to sync the clocks of 2 BLE devices as accurate as possible.

My thought was to use periodic advertising, because the radio opening window is 30[usec] so this accuracy is very good for my needs.

Now I only need to call k_uptime_get() just before radio transmission. What would you say is the best way to do it?

If there are any other options for syncing clocks using radio please share.

Related