refactor: move func section
This commit is contained in:
parent
01c6022104
commit
d4e964f633
|
@ -324,6 +324,14 @@ location_report_28bytes() ->
|
||||||
binary_to_hex_string(Data) ->
|
binary_to_hex_string(Data) ->
|
||||||
lists:flatten([io_lib:format("~2.16.0B ", [X]) || <<X:8>> <= Data]).
|
lists:flatten([io_lib:format("~2.16.0B ", [X]) || <<X:8>> <= Data]).
|
||||||
|
|
||||||
|
receive_msg() ->
|
||||||
|
receive
|
||||||
|
{deliver, Topic, #message{payload = Payload}} ->
|
||||||
|
{Topic, Payload}
|
||||||
|
after 100 ->
|
||||||
|
{error, timeout}
|
||||||
|
end.
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% test cases %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% test cases %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
t_case00_register(_) ->
|
t_case00_register(_) ->
|
||||||
|
@ -2677,11 +2685,3 @@ t_case34_dl_0x8805_single_mm_data_ctrl(_Config) ->
|
||||||
{error, timeout} = gen_tcp:recv(Socket, 0, 500),
|
{error, timeout} = gen_tcp:recv(Socket, 0, 500),
|
||||||
|
|
||||||
ok = gen_tcp:close(Socket).
|
ok = gen_tcp:close(Socket).
|
||||||
|
|
||||||
receive_msg() ->
|
|
||||||
receive
|
|
||||||
{deliver, Topic, #message{payload = Payload}} ->
|
|
||||||
{Topic, Payload}
|
|
||||||
after 100 ->
|
|
||||||
{error, timeout}
|
|
||||||
end.
|
|
||||||
|
|
Loading…
Reference in New Issue