Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending data over UDP
#1
I've managed to code a C program to send various types of data to Matlab on another machine over UDP; char, int and double. I'm really struggling to do the same with Python. I can send a char with no problem but trying to just send an integer is making my head spin. If I send any integer Matlab captures it as 10, regardless of the number. I've tried converting to string, sending as a bytearray and using pack but nothing works. What am I missing?
Reply


Messages In This Thread
Sending data over UDP - by alidaf - Oct-19-2017, 09:39 AM
RE: Sending data over UDP - by Larz60+ - Oct-19-2017, 11:41 AM
RE: Sending data over UDP - by alidaf - Oct-19-2017, 12:47 PM
RE: Sending data over UDP - by Larz60+ - Oct-19-2017, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python + PHP. Sending data from "Moodle" (php) to python CGI-script and get it back stanislav 0 1,586 May-07-2022, 10:32 AM
Last Post: stanislav

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020