Display milliseconds on serial CYBT-343026

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NeDh_4602711
Level 5
Level 5
5 solutions authored First solution authored 50 replies posted

I am using the CYBT-343026 module and I want to display the system(from start till now) current milliseconds after every 1 second on serial. I am able to set a timer that executes after every 1 second which callbacks function and print "test" message after every 1 second I have implemented this using wiced_timer.h library. But how to print milliseconds?

Thanks in advance.

Regards,

Neeraj

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Why don't you try initializing another millisecond timer and increment a timer variable on it's timeout?

This timer variable can be printed at the second timer's timeout. (Please note: The minimum timer resolution supported is 12.5 milliseconds).

wiced_rtos/wiced_rtc APIs are not exposed/supported on 20706.

Thanks,

-Dheeraj

View solution in original post

0 Likes
2 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Why don't you try initializing another millisecond timer and increment a timer variable on it's timeout?

This timer variable can be printed at the second timer's timeout. (Please note: The minimum timer resolution supported is 12.5 milliseconds).

wiced_rtos/wiced_rtc APIs are not exposed/supported on 20706.

Thanks,

-Dheeraj

0 Likes

Thanks I will do this..

Regards,

Neeraj