the .setSyncPeriod method sets the max sync period after the last sync, regardless of whether it was trigger by sync.now().
In practice, this means that if a sync is triggered by sync.now(), the automatic sync set by .setSyncPeriod will be postponed by the pre-defined period, which in your case is 2 minutes.
We generally advise against using sync.now() together with cloud.enqueue, as it makes battery life management difficult.
You may set sync period to 2 minutes and it will sync every 2 minutes, but if there is no data enqueued then nothing will be delivered and shown in the cloud console.
There are two places where events are enqueued:
on button press
on GNSS position update
First one only enqueues one event. Second will generate event every minute, but only if it is able to locate itself using GNSS satellites (see here and here). If you are indoors you will get no position updates. Be sure that you are running your microApp outdoors and sky is not obstructed by any object.
You may add a function that will blink one of the LEDs with different color to signal that position has been obtained.
Calling sync.setSyncPeriod('2 min'); should be enough to get sync every 2 minutes.
You did not provide any code for someCallback function so I cannot tell why it is not working.
If your beacon is low on battery synchronization through LTE might be not possible, however when connected though WebIDE it should still work (you can read more about it here). When you are testing synchronization
are you connected to WebIDE?
Why do you think it is not synchronizing? It is not sending events? Synchronization will have no visible effect when there is no data to be sent (there was no cloud.enqueue since last sync). Your code in the first post suggests that such scenario is possible when there is no GNSS fix.
Have you checked if location.startUpdates is providing position (tested outdoors)?
You may try to this snippet to generate dummy event every 30 seconds, so you can see events in Cloud Event Log:
Thank you for answer i will test
I think its not sync coz i not see any updates on rest point
Yes i connect IDE via bluetooth ,and not i still not tested outdoor
Hardware Revision LTE_A1.1
Firmware Version 0.1.10
So you was disconnected from WebIDE and it was working using cellular modem and then it stopped?
Or you were still connected via WebIDE and it stopped? Was Bluetooth link still active (side LEDs pulsating)?
LTE Beacon sends data through Bluetooth when you are connected to it to save on power and data plan (you can read about it here). So if you want to test cellular connectivity you have to disconnect from WebIDE.