Jump to content

Senden von Bytes via RS232 Bricklet


hkuhn

Recommended Posts

Ne, das siehst du falsch. Es werden einfach Binärdaten als char-Array übertragen.

 

Da wir (auf Grund er generierbarkeit) keine dynamischen Arrays in unseren APIs haben können, musst du immer ein komplettes char-Array der Länge 60 übertragen und zusätzlich eine Länge.

 

Wenn du nur ein Byte schreiben möchtest, musst du also einfach das Byte in das erste Element des Arrays schreiben und die Länge auf 1 setzen.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...