Skip to content

TypeError: can only concatenate str (not "bytes") to str #20

@mtncgj123

Description

@mtncgj123

When I run the code, It seems I have successfully connected to the RTK, but I can only receive the bytes data and got an error message like below

[INFO] [1656898801.067970]: Connecting to Reach RTK 192.168.42.1 on port 9001
[INFO] [1656898801.073358]: Successfully connected to device, starting publishing!
Traceback (most recent call last):
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 142, in
device.start()
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 62, in start
data = self.buffered_readLine().strip()
File "/home/iasl/ZMJ_ws/src/reach_ros_node/scripts/nmea_tcp_driver", line 125, in buffered_readLine
line += part
TypeError: can only concatenate str (not "bytes") to str

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions