question: connect to device and set eventlistener ; concode_field_sep Date messageSentAt concode_elem_sep Date messageReceivedAt concode_elem_sep List<PrimareEventListener> _listeners concode_elem_sep String deviceId concode_elem_sep boolean connectionBroken concode_elem_sep Logger logger concode_elem_sep PrimareResponseFactory responseFactory concode_elem_sep byte[] buffer concode_elem_sep PrimareMessageFactory messageFactory concode_elem_sep int total concode_elem_sep Date bytesReceivedAt concode_elem_sep int double_dle_start concode_elem_sep Date bytesSentAt concode_field_sep void disconnect concode_elem_sep PrimareMessageFactory getMessageFactory concode_elem_sep void sendBytes concode_elem_sep boolean isConnected concode_elem_sep int parseData concode_elem_sep void sendMessage concode_elem_sep void sendMessage concode_elem_sep void sendMessage concode_elem_sep void sendPingMessages concode_elem_sep void sendMessagePart concode_elem_sep PrimareResponseFactory getResponseFactory concode_elem_sep void sendCommand concode_elem_sep void removeEventListener concode_elem_sep void sendInitMessages concode_elem_sep void disconnectAndRemoveEventListener concode_elem_sep void connect concode_elem_sep void addEventListener
target: void function ( PrimareEventListener arg0 ) { connect ( ) ; addEventListener ( arg0 ) ; }