Add autoSendCfgValsetAtSpaceRemaining. Update Example9

This commit is contained in:
Paul
2022-10-31 13:14:57 +00:00
parent 319b557142
commit 5ef966c6bb
5 changed files with 125 additions and 3 deletions
@@ -996,6 +996,7 @@ public:
uint8_t sendCfgValset(uint16_t maxWait = defaultMaxWait); // Send the CfgValset (UBX-CFG-VALSET) construct
uint8_t getCfgValsetLen(); // Returns the length of the current CfgValset construct as number-of-keyIDs
size_t getCfgValsetSpaceRemaining(); // Returns the number of free bytes remaining in packetCfg
void autoSendCfgValsetAtSpaceRemaining(size_t spaceRemaining) { _autoSendAtSpaceRemaining = spaceRemaining; } // Cause CFG_VALSET packets to be sent automatically when packetCfg has less than this many bytes available
// get and set functions for all of the "automatic" message processing
@@ -1796,6 +1797,9 @@ private:
// Keep track of how many keys have been added to CfgValset
uint8_t _numCfgKeyIDs = 0;
// Send the current CFG_VALSET message when packetCfg has less than this many bytes available
size_t _autoSendAtSpaceRemaining = 0;
};
#endif