Is SNT_oneshot() blocking?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is SNT_oneshot() blocking?

Jump to solution
1,244 Views
MQXuser
Contributor III

I seem to have a problem after calling SNTP_oneshot()  function. Problem is that sometimes my tasks stop running. There are no stack overflows, neither unhandled interrupts, I dont see any memory corruption. All my task status are OK and waiting for a time delay, message blocked, etc but none of them run again.

It appears that if the time server answers the program continues to run as expected.

 

Do any of you have a clue about what could be going on?

Labels (1)
Tags (1)
0 Kudos
1 Solution
300 Views
PetrM
Senior Contributor I

It is blocking function, but just for the timeout you pass as last parameter.

It's been tested, that when no answer comes from server, it returns with error after the timeout and task continues.

Do you have initialized ethernet device, RTCS and do you have IP address at the time you call this function?

 

PetrM

View solution in original post

0 Kudos
1 Reply
301 Views
PetrM
Senior Contributor I

It is blocking function, but just for the timeout you pass as last parameter.

It's been tested, that when no answer comes from server, it returns with error after the timeout and task continues.

Do you have initialized ethernet device, RTCS and do you have IP address at the time you call this function?

 

PetrM

0 Kudos