gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 245 forks source link

Add byte type parsing to DB_Row API + set parsing case insensitive #315

Closed LoicGRENON closed 2 years ago

LoicGRENON commented 2 years ago

I added the BYTE type to the parsing to DB_Row API to avoid ValueError exception when parsing a specification with BYTE type value. I also set the string value to upper case in order to do a case insensitive search for the type of the value when parsing the specification (e.g. : BYTE, Byte, byte, etc ... are all acceptable).

(New PR with corrected pycodestyle error)