nimbuscontrols / EIPScanner

Free implementation of EtherNet/IP in C++
https://eipscanner.readthedocs.io/en/latest/
MIT License
233 stars 93 forks source link

[FileObject] Add required attribute Directory (34) to FileObject implementation #51

Open Broekman opened 3 years ago

Broekman commented 3 years ago

[FileObject] Add required attribute Directory (34) to FileObject implementation

Refer to CIP Vol1 (3.24) - 5A-42.2

Class code: 0x37 Attribute ID: 32 Instance ID: 0 (base class) Access rule: Get Name: Directory Data type: Array of: Struct of:

Also requires implementation of STRINGI:

Already have this working but in a quick and dirty way. Will work it neatly into the library later. At least will add the structure but if wanted I could also add e.g. a functionality to retrieve a list of files from a device.