Skip to content

Streaming binary data using Lua string.pack() / string.unpack(). Topics: #Programming-Pattern #Sample #SICK-AppSpace

License

Notifications You must be signed in to change notification settings

SICK-AppSpace-samples-2-2-4/StringStreaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

StringStreaming

Streaming binary data using Lua string.pack() / string.unpack()

Description

This sample shows the streaming of data packed with the Lua string.pack function. First the data is packed (serialized in binary form) and written to a file. Then the same file is read, unpacked and the data is stored back to variables. Their values are then printed to the console. The packing and unpacking needs a format string ("HBL" in this sample). This defines how the data is packed. More information about the format string can be found in the component description or in the Lua reference manual

Topics

Programming-Pattern, Sample, SICK-AppSpace

About

Streaming binary data using Lua string.pack() / string.unpack(). Topics: #Programming-Pattern #Sample #SICK-AppSpace

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages