SensorPort QML Type
Provides functions to access sensor ports and transfer files through them. More...
|Import Statement:||import ArcGIS.AppFramework.Sensors 1.0|
- baudRate : int
- csvSeparator : QChar
- dataFormat : DataFormat
- endOfLine : string
- error : SerialPortError
- errorString : string
- isConnected : bool
- portName : string
- baudRateChanged( int baudRate)
- connectionStateChanged( bool isConnected)
- csvReceived( QStringList csv)
- csvSeparatorChanged( QChar separator)
- dataFormatChanged( SensorPort::DataFormat dataFormat)
- endOfLineChanged( string endOfLine)
- nmeaReceived( string talker, string type, QStringList fields, bool checksumValid)
- textReceived( string text)
The SensorPort component handles both access to and information about serial ports, as well as handling the files and data sent through them. After connecting to the port, the send and sendLine methods can be used to submit data.
This property will be deprecated soon, and should no longer be used. Instead, use the Device component.
This enum describes the type of data being transferred through the port.
Returns the character being used to separate values in CSV files. The default will most likely be a comma.
Returns the maximum length of the text sent by the sendLine() method.
Signal emitted when the connection state of the port has changed.
Signal emitted when the character separating values in CSV files has been changed.
Signal emitted when the data format the port is handling has changed.
Returns when the endOfLine property has changed.
Signal emitted when an NMEA file has been received.
NMEA is a data specification used by devices to capture information, particularly in navigation and mapping contexts. ArcGIS Online uses NMEA files for GPS values.
Sends the given line of text as a string. The maximum length of this line is governed by the endOfLine property.
The line parameter
The line of text to send.