Modbus API reference
64 symbols
PDCOMM_MODBUS_ASCIIModbus ASCII over a serial line (Modbus over Serial Line specification).PDCOMM_MODBUS_BUFFER_TOO_SMALLThe output capacity is smaller than the data. The required size is reported and the output is unchanged.PDCOMM_MODBUS_INTERNAL_ERRORAn internal failure, such as a contained panic or a poisoned endpoint lock. Release the endpoint and create a new one.PDCOMM_MODBUS_INVALID_HANDLEThe handle is zero, released, unknown or of the wrong kind.PDCOMM_MODBUS_INVALID_INPUTA pointer, size or JSON document is invalid; nothing was changed.PDCOMM_MODBUS_OKThe call succeeded.PDCOMM_MODBUS_RTUModbus RTU over a serial line (Modbus over Serial Line specification).PDCOMM_MODBUS_SECURITYModbus/TCP Security: TLS with X.509 certificates and role-based authorization.PDCOMM_MODBUS_SERVICE_ERRORThe command ran and failed, for example with a timeout, a refused connection or an invalid configuration. An owned error buffer is returned.PDCOMM_MODBUS_TCPModbus TCP (MBAP header over TCP), client, server and gateway listener.pdcomm_modbus_abi_versionReturns the ABI version of the loaded library.pdcomm_modbus_buffer_copyCopies a JSON reply buffer as UTF-8 without a terminator.pdcomm_modbus_callRuns one JSON command on an endpoint and returns the JSON reply.pdcomm_modbus_capabilitiesReturns the features compiled into the loaded library.pdcomm_modbus_capabilityFeature bits reported by pdcomm_modbus_capabilities().pdcomm_modbus_endpoint_createCreates a disconnected endpoint with the default configuration.pdcomm_modbus_handleOpaque, library-local handle of an endpoint or a JSON buffer.pdcomm_modbus_logging_configureConfigures the optional diagnostic log of this library.pdcomm_modbus_logging_flushWaits until queued log records are written to the sink.pdcomm_modbus_logging_statusCopies the diagnostic log status as UTF-8 JSON without a terminator.pdcomm_modbus_releaseReleases an endpoint or a JSON buffer.pdcomm_modbus_statusStatus code returned by every int32_t Modbus C ABI function.modbusModbus C++ API: RAII handles, JSON command endpoints and diagnostic logging, plus the Qt and MFC adapters in bindings/.DiagnosticLoggingStatic functions that configure, inspect and flush the optional JSON Lines diagnostic log of the Modbus library.DiagnosticLogging::configureApplies a logging configuration.DiagnosticLogging::flushWaits up to two seconds until queued records are written.DiagnosticLogging::statusReturns the logging status as JSON.EndpointOne Modbus endpoint that runs JSON commands.Endpoint::EndpointCreates a disconnected endpoint with the default configuration.Endpoint::callRuns one JSON command and returns the complete reply.HandleMove-only owner of one ::pdcomm_modbus_handle.Handle::HandleMoves ownership; other becomes empty.Handle::HandleCopying is disabled: a handle has exactly one owner.Handle::HandleTakes ownership of a handle.Handle::getReturns the owned handle without giving up ownership.Handle::operator=Releases the current handle, then takes ownership from other.Handle::operator=Copy assignment is disabled: a handle has exactly one owner.Handle::~HandleReleases the owned handle, if any.LicenseStatic functions that install license text and read the license status and this host id of the Modbus library.License::hostIdReturns this host id, PDH1-XXXX-XXXX-XXXX-XXXX.License::installInstalls license text, replacing text installed earlier.License::statusReturns the license status as JSON.MfcEndpointModbus endpoint that runs CString JSON commands.MfcEndpoint::CallRuns one JSON command and returns the complete reply.QtEndpointModbus endpoint that takes a QJsonObject command and returns the result object of the reply.QtEndpoint::callRuns one JSON command and returns its result object.DiagnosticLogging.ConfigureReplaces the diagnostic log configuration.DiagnosticLogging.FlushWaits until the queued log records have been written.DiagnosticLogging.StatusGets the current logging state and counters.Endpoint.EndpointCreates a native Modbus endpoint.Endpoint.CallRuns one JSON command on the endpoint and returns its result.Endpoint.DisposeReleases the native endpoint.Endpoint.pdcomm_modbus_capabilitiesGets the features compiled into the loaded native library.License.HostIdGets the host id of this machine, which host-bound licenses (SECS/GEM runtime licenses) name.License.InstallInstalls license text, replacing text installed earlier.License.StatusGets the license status of the Modbus library.ModbusModbusCommandException.CodeGets the machine-readable error code, or null for errors without one. Codes: license_required (a connect refused without a valid license for modbus, or for modbus-security when security is configured), license_invalid (a license_install without a verifiable license) and host_id_unavailable.ModbusCommandException.DetailsGets the license object of a license_required reply, with the refused module, its license state (for example missing or expired) and the deciding license_id; otherwise null.ModbusCommandException.LicenseRequiredGets whether the command was refused for lack of a PDComm license (ModbusCommandException.Code is license_required). Connections that are already open are not affected.DiagnosticLoggingControls the optional diagnostic log of the PDComm Modbus native library.EndpointA PDComm Modbus endpoint driven by JSON commands: a Modbus TCP, RTU or ASCII client or server (simulator).LicenseInstalls and inspects the PDComm license of the Modbus native library.ModbusCommandExceptionThe exception thrown when a Modbus endpoint rejects a command (native status SERVICE_ERROR).
No API matches the filter.