Underdocumented note.update 'sync' field?

Hi Blues,

So I guess the note.update API is missing the sync field mention? I tried sending one with/without and saw from trace log that

sync: wakeup: test.dbs again

was advertised when using "sync": true. Can you confirm this?

Full trace log is down below

trace
comm,sync,syncmax,req,file,mem,gps
>> {"req":"note.update","note":"test_note","file":"test.dbs","body":{"mode":"ANALOG"},"crc":"001d:53a9945f"}
R39:32.66 modified test.dbs (20): note replaced
<< { "crc":"001D:A3A6BF43"}
S39:33.45 sync: *** 4 notefile templates need to be sync'ed to notehub before using ntn ***
>> {"req":"note.update","note":"test_note","file":"test.dbs","body":{"mode":"DISABLED"},"crc":"001e:7fc4714f"}
R39:46.39 modified test.dbs (21): note replaced
<< { "crc":"001E:A3A6BF43"}
S39:46.40 sync: next wake-up due in 24h 0m 0s for housekeeping
S39:47.18 sync: *** 4 notefile templates need to be sync'ed to notehub before using ntn ***
>> {"req":"note.update","note":"test_note","file":"test.dbs","sync":true,"body":{"mode":"ANALOG"},"crc":"001f:d4c410ef"}
R40:01.50 modified test.dbs (22): note replaced
R40:01.50 sync: wakeup: test.dbs again
<< { "crc":"001F:A3A6BF43"}
S40:01.52 sync: next wake-up due in 24h 0m 0s for housekeeping
S40:02.29 sync: *** 4 notefile templates need to be sync'ed to notehub before using ntn ***
S40:03.07 sync: *** 4 notefile templates need to be sync'ed to notehub before using ntn ***

Hey @Jakov,

Yeah good catch. I’ll get this added to the docs.

sync: “Set to `true` to sync the Notefile immediately after updating the Note. Only the specified Notefile is guaranteed to sync.”

TJ