Skip to content

Commit

Permalink
Allow LwM2M version number 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-xiaoyu committed Jul 19, 2019
1 parent 69dcbaa commit 1c03bf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/emqx_lwm2m_coap_resource.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -351,9 +351,8 @@ delink(Str) ->
Ltrim = binary_util:ltrim(Str, $<), Ltrim = binary_util:ltrim(Str, $<),
binary_util:rtrim(Ltrim, $>). binary_util:rtrim(Ltrim, $>).


check_lwm2m_version(<<"1.0.", _PatchVerNum/binary>>) -> true;
check_lwm2m_version(<<"1.0">>) -> true;
check_lwm2m_version(<<"1">>) -> true; check_lwm2m_version(<<"1">>) -> true;
check_lwm2m_version(<<"1.", _PatchVerNum/binary>>) -> true;
check_lwm2m_version(_) -> false. check_lwm2m_version(_) -> false.


check_epn(undefined) -> false; check_epn(undefined) -> false;
Expand Down

0 comments on commit 1c03bf3

Please sign in to comment.