Lines Matching refs:b
18 AT_FSM = {b'AT+CGMM': b'0G Dummy Model',
19 b'AT+CGSN': b'0123456789',
20 b'AT+CIMI': b'ESP',
21 b'AT+COPS?': b'+COPS: 0,0,"ESP Network"',
22 b'AT+CSQ': b'+CSQ: 4,0',
23 b'AT+CBC': b'+CBC: 0,50',
24 b'ATD*99***1#': b'CONNECT',
29 buff = b''
33 if not buff.endswith(b'\r'):
35 cmd_list = buff.split(b'\r')
36 buff = b''
40 snd = self.AT_FSM.get(cmd, b'')
41 if snd != b'':
42 snd += b'\n'
43 snd += b'OK\n'