Skip to content
Permalink
Browse files

Allow LwM2M version number 1.x

  • Loading branch information...
terry-xiaoyu committed Jul 19, 2019
1 parent 69dcbaa commit 1c03bf3b6a9cae7ed52f87ee219e9dd9d8824892
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/emqx_lwm2m_coap_resource.erl
@@ -351,9 +351,8 @@ delink(Str) ->
Ltrim = binary_util:ltrim(Str, $<),
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.", _PatchVerNum/binary>>) -> true;
check_lwm2m_version(_) -> false.

check_epn(undefined) -> false;

0 comments on commit 1c03bf3

Please sign in to comment.
You can’t perform that action at this time.