You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: isobus/include/isobus/isobus/isobus_virtual_terminal_client.hpp
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -330,6 +330,8 @@ namespace isobus
330
330
Disconnected, ///< VT is not connected, and is not trying to connect yet
331
331
WaitForPartnerVTStatusMessage, ///< VT client is initialized, waiting for a VT server to come online
332
332
SendWorkingSetMasterMessage, ///< Client is sending the working state master message
333
+
SendGetMemoryInitial, ///< We send an initial get memory message for 0 bytes to get the version of the VT server
334
+
WaitForGetMemoryInitialResponse, ///< Client is waiting for a response to the initial
333
335
ReadyForObjectPool, ///< Client needs an object pool before connection can continue
334
336
SendGetMemory, ///< Client is sending the "get memory" message to see if VT has enough memory available
335
337
WaitForGetMemoryResponse, ///< Client is waiting for a response to the "get memory" message
@@ -1234,6 +1236,10 @@ namespace isobus
1234
1236
const std::vector<std::uint8_t> *pool,
1235
1237
const std::string &version = "");
1236
1238
1239
+
/// @brief Returns the number of object pools that have been assigned for upload
1240
+
/// @returns The number of object pools that have been assigned for upload
1241
+
std::size_tget_number_of_object_pools() const;
1242
+
1237
1243
/// @brief Configures an object pool to be automatically scaled to match the target VT server
1238
1244
/// @param[in] poolIndex The index of the pool you want to auto-scale
1239
1245
/// @param[in] originalDataMaskDimensions_px The data mask width that your object pool was originally designed for
@@ -1252,6 +1258,15 @@ namespace isobus
1252
1258
/// @param[in] version An optional version string. The stack will automatically store/load your pool from the VT if this is provided.
1253
1259
voidregister_object_pool_data_chunk_callback(std::uint8_t poolIndex, std::uint32_t poolTotalSize, DataChunkCallback value, std::string version = "");
1254
1260
1261
+
/// @brief Sets a callback that will be called when the client is ready for object pool upload. You should call this before initialize if you're planning to use it.
1262
+
/// @details This will be called once the VT version of the server is known so that you can select which
1263
+
/// object pools you want to upload based on that information. This is optional. If you want to use this mechanism,
1264
+
/// simply set your object pools in the callback using set_object_pool or register_object_pool_data_chunk_callback.
1265
+
/// If you fail to do this when the callback is called, no object pools will be uploaded until you call set_object_pool, though that
1266
+
/// would not be particularly thread safe unless you passed false to the initialize function. You can also just set your object pools before connecting if you want to always upload the same pools.
1267
+
/// @param[in] callback The callback to call when ready for object pool upload
0 commit comments