open-dis-python icon indicating copy to clipboard operation
open-dis-python copied to clipboard

DataPdu Not finished - needs example

Open DuffyScottC opened this issue 5 years ago • 1 comments

I am struggling to find an example of how to use a DataPdu. The nature of python makes it difficult to read your code and decipher how to create a simple DataPdu to send a simple integer as the variable length data.

This may be because DataPdu is unfinished. Could you

  1. Provide an example of creating a DataPdu with a variable length record to send an integer as the payload
  2. Finish the DataPdu section?

DuffyScottC avatar May 14 '20 04:05 DuffyScottC

Hi @DuffyScottC I see we have a unit test for the SetDataPdu, but not DataPdu yet.

https://github.com/open-dis/open-dis-python/blob/master/tests/testSetDataPdu.py

Does that help?

leif81 avatar May 15 '20 20:05 leif81