BTP messaging : encodeBtpPacket method addition (#190)
* BTP messaging : encodeBtpPacket method addition
* resolving PR comments
* Update BtpCodec.ts
* Add some missing checks
* adjusted codestyle a bit
---------
Co-authored-by: Ingo Fischer <github@fischer-ka.de>