wifi message parsing function functional, but not fully implemented