added ByteBuffer mock to prevent nullpointer since previous commit
enhanced datalogger functionality to log bytes send.