ttlock / iOS_SDK_Demo

TTLock is a global provider of solutions for smart locks. We provide PCBA and softwares for lock manufactures and end users. We provide open API/SDK for developers. With these APIs/SDKs, you can develop your own applications to manage smart locks. The SDK here is for mobile app to communicate with locks via bluetooth.
MIT License
12 stars 12 forks source link

Freeze lock issue #12

Closed thuongboconganh closed 8 months ago

thuongboconganh commented 1 year ago

When i check the lock support lockfreeze function:

==> return error "The lock does not support this function" Please help

JuannyiOS commented 1 year ago

Hi, FeatureValue : TTLockFeatureValueLockFreeze

TTLockConfigType: TTLockFreeze

We tried, no problem.

If you call this interface ” setLockConfigWithType“ after turning off the Bluetooth of your phone, this error "The lock does not support this function" will also be reported . It should be a bug with the SDK. Send the "lockdata" value to us to check.

If other errors are reported, it should be a lock bug. Check whether there is a firmware upgrade

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2022年12月29日(星期四) 下午3:13 @.>; @.***>; 主题: [ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12)

When i check the lock support lockfreeze function:

(BOOL)lockFeatureValue:(NSString )lockData suportFunction:(TTLockFeatureValue)function; ==> It return true But when call: 1/ + (void)setLockConfigWithType:(TTLockConfigType)type on:(BOOL)on lockData:(NSString )lockData success:(TTSucceedBlock)success failure:(TTFailedBlock)failure; 2/ + (void)getLockConfigWithType:(TTLockConfigType)type lockData:(NSString *)lockData success:(TTGetLockConfigSuccessBlock)success failure:(TTFailedBlock)failure;

==> return error "The lock does not support this function" Please help

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

thuongboconganh commented 1 year ago

Thanks for response! The lockData is: GTgZsx2+seWFKLxb3c2/5WNhvGJWF9+wz3eD5mzzTRJLBF9E2dJ1dUB7k0+HHcFYpwVYvwdrSD2SuRw2Y9Cce/HbDQfTPzHxSs+9g1G+xIzeak8iYoDbCntYOMqFmxkDtJ+c8KT49Lz3o+iV851EXQ26WnBhTmwXeOQbISAMhYQnjV56DUUcgGcVR+dBmJweKDN0lll9+5T4NkcNTNZsU9RPP0BYQIzkzpcBAM7iB/9sL8+uDsKIwHwchEWI3z1Ens41uCLhBc0LSVeQu7sMxnqFi+j6tK0zaxNQ7Oh/pI1fImwuVtsexoJxCJDyzWtZ3k+u+39P5/Sz9iar+ANweAm8+AMXgjn+Jnw3KKHcdVHwgg7tGi7SqcXP45vufcoq24sHgxBBSVpUHc0QM5FX2WUn0r7R2Gg7tO+fL9ITvtMGbKCUukDaAJ+VkvP81p94TWsqnBXzgzxqzciUNDyyOfyLsEZv6/Co18KrLp5l686tZbhpNnc2D16jqFX/Y6aue61e6RWbtceKYwrTqO0G+J/iYnoUkIf7J1sb7eRBmJGEz/bwPPFyXxx19RdheHGN2+983d29cmerhP0APZlVkc8l8mlMrd/Dyld1X1fZailwWQA1shOyphGKGYJeE+vKPwPr6iMMkEH3oSIt27wPn39mVcWAPq+CzsP/OLM1Thy8r3vFK+MzTB3aZWvjL9u5FfM0uZc+r1Ki3YBrdP1n0Jbwa+EUJsvHfF2mGQF/j1SpOhjEFMHv8XvuvMYDM/B16kN9TPP1

Please check for me, thanks so much!

On Thu, Dec 29, 2022 at 4:54 PM JuannyiOS @.***> wrote:

Hi, FeatureValue : TTLockFeatureValueLockFreeze

TTLockConfigType: TTLockFreeze

We tried, no problem.

If you call this interface ” setLockConfigWithType“ after turning off the Bluetooth of your phone, this error "The lock does not support this function" will also be reported . It should be a bug with the SDK. Send the "lockdata" value to us to check.

If other errors are reported, it should be a lock bug. Check whether there is a firmware upgrade

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2022年12月29日(星期四) 下午3:13 @.>; @.***>; 主题: [ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12)

When i check the lock support lockfreeze function:

(BOOL)lockFeatureValue:(NSString )lockData suportFunction:(TTLockFeatureValue)function; ==> It return true But when call: 1/ + (void)setLockConfigWithType:(TTLockConfigType)type on:(BOOL)on lockData:(NSString )lockData success:(TTSucceedBlock)success failure:(TTFailedBlock)failure; 2/ + (void)getLockConfigWithType:(TTLockConfigType)type lockData:(NSString *)lockData success:(TTGetLockConfigSuccessBlock)success failure:(TTFailedBlock)failure;

==> return error "The lock does not support this function" Please help

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/ttlock/iOS_SDK_Demo/issues/12#issuecomment-1367199175, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47X27QJKK5AYIHW2DBVLDDWPVNTTANCNFSM6AAAAAATL3MV5E . You are receiving this because you authored the thread.Message ID: @.***>

JuannyiOS commented 1 year ago

This lockData does not support LockFreeze.

The result of this method is NO

[TTUtil lockFeatureValue:@"GTgZsx2+seWFKLxb3c2/5WNhvGJWF9+wz3eD5mzzTRJLBF9E2dJ1dUB7k0+HHcFYpwVYvwdrSD2SuRw2Y9Cce/HbDQfTPzHxSs+9g1G+xIzeak8iYoDbCntYOMqFmxkDtJ+c8KT49Lz3o+iV851EXQ26WnBhTmwXeOQbISAMhYQnjV56DUUcgGcVR+dBmJweKDN0lll9+5T4NkcNTNZsU9RPP0BYQIzkzpcBAM7iB/9sL8+uDsKIwHwchEWI3z1Ens41uCLhBc0LSVeQu7sMxnqFi+j6tK0zaxNQ7Oh/pI1fImwuVtsexoJxCJDyzWtZ3k+u+39P5/Sz9iar+ANweAm8+AMXgjn+Jnw3KKHcdVHwgg7tGi7SqcXP45vufcoq24sHgxBBSVpUHc0QM5FX2WUn0r7R2Gg7tO+fL9ITvtMGbKCUukDaAJ+VkvP81p94TWsqnBXzgzxqzciUNDyyOfyLsEZv6/Co18KrLp5l686tZbhpNnc2D16jqFX/Y6aue61e6RWbtceKYwrTqO0G+J/iYnoUkIf7J1sb7eRBmJGEz/bwPPFyXxx19RdheHGN2+983d29cmerhP0APZlVkc8l8mlMrd/Dyld1X1fZailwWQA1shOyphGKGYJeE+vKPwPr6iMMkEH3oSIt27wPn39mVcWAPq+CzsP/OLM1Thy8r3vFK+MzTB3aZWvjL9u5FfM0uZc+r1Ki3YBrdP1n0Jbwa+EUJsvHfF2mGQF/j1SpOhjEFMHv8XvuvMYDM/B16kN9TPP1" suportFunction:TTLockFeatureValueLockFreeze] 

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2022年12月29日(星期四) 晚上7:14 @.>; @.**@.>; 主题: Re: [ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12)

Thanks for response! The lockData is: GTgZsx2+seWFKLxb3c2/5WNhvGJWF9+wz3eD5mzzTRJLBF9E2dJ1dUB7k0+HHcFYpwVYvwdrSD2SuRw2Y9Cce/HbDQfTPzHxSs+9g1G+xIzeak8iYoDbCntYOMqFmxkDtJ+c8KT49Lz3o+iV851EXQ26WnBhTmwXeOQbISAMhYQnjV56DUUcgGcVR+dBmJweKDN0lll9+5T4NkcNTNZsU9RPP0BYQIzkzpcBAM7iB/9sL8+uDsKIwHwchEWI3z1Ens41uCLhBc0LSVeQu7sMxnqFi+j6tK0zaxNQ7Oh/pI1fImwuVtsexoJxCJDyzWtZ3k+u+39P5/Sz9iar+ANweAm8+AMXgjn+Jnw3KKHcdVHwgg7tGi7SqcXP45vufcoq24sHgxBBSVpUHc0QM5FX2WUn0r7R2Gg7tO+fL9ITvtMGbKCUukDaAJ+VkvP81p94TWsqnBXzgzxqzciUNDyyOfyLsEZv6/Co18KrLp5l686tZbhpNnc2D16jqFX/Y6aue61e6RWbtceKYwrTqO0G+J/iYnoUkIf7J1sb7eRBmJGEz/bwPPFyXxx19RdheHGN2+983d29cmerhP0APZlVkc8l8mlMrd/Dyld1X1fZailwWQA1shOyphGKGYJeE+vKPwPr6iMMkEH3oSIt27wPn39mVcWAPq+CzsP/OLM1Thy8r3vFK+MzTB3aZWvjL9u5FfM0uZc+r1Ki3YBrdP1n0Jbwa+EUJsvHfF2mGQF/j1SpOhjEFMHv8XvuvMYDM/B16kN9TPP1

Please check for me, thanks so much!

On Thu, Dec 29, 2022 at 4:54 PM JuannyiOS @.***> wrote:

> Hi, > FeatureValue :&nbsp;TTLockFeatureValueLockFreeze > > TTLockConfigType:&nbsp;TTLockFreeze > > We tried, no problem. > > > If you call this interface ” setLockConfigWithType“ after turning off the > Bluetooth of your phone, this error&nbsp;"The lock does not support this > function"&nbsp;will also be reported . It should be a bug with the SDK. > Send the "lockdata" value to us to check. > > > If other errors are reported, it should be a lock bug. Check whether there > is a firmware upgrade > > > > > > ------------------&nbsp;原始邮件&nbsp;------------------ > 发件人: "ttlock/iOS_SDK_Demo" @.&gt;; > 发送时间:&nbsp;2022年12月29日(星期四) 下午3:13 > @.&gt;; > @.&gt;; > 主题:&nbsp;[ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12) > > > > > > > When i check the lock support lockfreeze function: > > (BOOL)lockFeatureValue:(NSString )lockData > suportFunction:(TTLockFeatureValue)function; > ==&gt; It return true > But when call: > 1/ + (void)setLockConfigWithType:(TTLockConfigType)type > on:(BOOL)on > lockData:(NSString )lockData > success:(TTSucceedBlock)success > failure:(TTFailedBlock)failure; > 2/ + (void)getLockConfigWithType:(TTLockConfigType)type > lockData:(NSString )lockData > success:(TTGetLockConfigSuccessBlock)success > failure:(TTFailedBlock)failure; > > ==&gt; return error "The lock does not support this function" > Please help > > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you are subscribed to this thread.Message > ID: **@.&gt; > > — > Reply to this email directly, view it on GitHub > <https://github.com/ttlock/iOS_SDK_Demo/issues/12#issuecomment-1367199175&gt;, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A47X27QJKK5AYIHW2DBVLDDWPVNTTANCNFSM6AAAAAATL3MV5E&gt; > . > You are receiving this because you authored the thread.Message ID: > @.> >

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

thuongboconganh commented 1 year ago

Ok, thanks for fully support!

Vào Th 5, 29 thg 12, 2022 lúc 18:22 JuannyiOS @.***> đã viết:

This lockData does not support LockFreeze.

The result of this method is NO

[TTUtil lockFeatureValue:@"GTgZsx2+seWFKLxb3c2/5WNhvGJWF9+wz3eD5mzzTRJLBF9E2dJ1dUB7k0+HHcFYpwVYvwdrSD2SuRw2Y9Cce/HbDQfTPzHxSs+9g1G+xIzeak8iYoDbCntYOMqFmxkDtJ+c8KT49Lz3o+iV851EXQ26WnBhTmwXeOQbISAMhYQnjV56DUUcgGcVR+dBmJweKDN0lll9+5T4NkcNTNZsU9RPP0BYQIzkzpcBAM7iB/9sL8+uDsKIwHwchEWI3z1Ens41uCLhBc0LSVeQu7sMxnqFi+j6tK0zaxNQ7Oh/pI1fImwuVtsexoJxCJDyzWtZ3k+u+39P5/Sz9iar+ANweAm8+AMXgjn+Jnw3KKHcdVHwgg7tGi7SqcXP45vufcoq24sHgxBBSVpUHc0QM5FX2WUn0r7R2Gg7tO+fL9ITvtMGbKCUukDaAJ+VkvP81p94TWsqnBXzgzxqzciUNDyyOfyLsEZv6/Co18KrLp5l686tZbhpNnc2D16jqFX/Y6aue61e6RWbtceKYwrTqO0G+J/iYnoUkIf7J1sb7eRBmJGEz/bwPPFyXxx19RdheHGN2+983d29cmerhP0APZlVkc8l8mlMrd/Dyld1X1fZailwWQA1shOyphGKGYJeE+vKPwPr6iMMkEH3oSIt27wPn39mVcWAPq+CzsP/OLM1Thy8r3vFK+MzTB3aZWvjL9u5FfM0uZc+r1Ki3YBrdP1n0Jbwa+EUJsvHfF2mGQF/j1SpOhjEFMHv8XvuvMYDM/B16kN9TPP1" suportFunction:TTLockFeatureValueLockFreeze] 

------------------ 原始邮件 ------------------ 发件人: "ttlock/iOS_SDK_Demo" @.>; 发送时间: 2022年12月29日(星期四) 晚上7:14 @.>; @.**@.>; 主题: Re: [ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12)

Thanks for response! The lockData is: GTgZsx2+seWFKLxb3c2/5WNhvGJWF9+wz3eD5mzzTRJLBF9E2dJ1dUB7k0+HHcFYpwVYvwdrSD2SuRw2Y9Cce/HbDQfTPzHxSs+9g1G+xIzeak8iYoDbCntYOMqFmxkDtJ+c8KT49Lz3o+iV851EXQ26WnBhTmwXeOQbISAMhYQnjV56DUUcgGcVR+dBmJweKDN0lll9+5T4NkcNTNZsU9RPP0BYQIzkzpcBAM7iB/9sL8+uDsKIwHwchEWI3z1Ens41uCLhBc0LSVeQu7sMxnqFi+j6tK0zaxNQ7Oh/pI1fImwuVtsexoJxCJDyzWtZ3k+u+39P5/Sz9iar+ANweAm8+AMXgjn+Jnw3KKHcdVHwgg7tGi7SqcXP45vufcoq24sHgxBBSVpUHc0QM5FX2WUn0r7R2Gg7tO+fL9ITvtMGbKCUukDaAJ+VkvP81p94TWsqnBXzgzxqzciUNDyyOfyLsEZv6/Co18KrLp5l686tZbhpNnc2D16jqFX/Y6aue61e6RWbtceKYwrTqO0G+J/iYnoUkIf7J1sb7eRBmJGEz/bwPPFyXxx19RdheHGN2+983d29cmerhP0APZlVkc8l8mlMrd/Dyld1X1fZailwWQA1shOyphGKGYJeE+vKPwPr6iMMkEH3oSIt27wPn39mVcWAPq+CzsP/OLM1Thy8r3vFK+MzTB3aZWvjL9u5FfM0uZc+r1Ki3YBrdP1n0Jbwa+EUJsvHfF2mGQF/j1SpOhjEFMHv8XvuvMYDM/B16kN9TPP1

Please check for me, thanks so much!

On Thu, Dec 29, 2022 at 4:54 PM JuannyiOS @.***> wrote:

> Hi, > FeatureValue :&nbsp;TTLockFeatureValueLockFreeze > > TTLockConfigType:&nbsp;TTLockFreeze > > We tried, no problem. > > > If you call this interface ” setLockConfigWithType“ after turning off the > Bluetooth of your phone, this error&nbsp;"The lock does not support this > function"&nbsp;will also be reported . It should be a bug with the SDK. > Send the "lockdata" value to us to check. > > > If other errors are reported, it should be a lock bug. Check whether there > is a firmware upgrade > > > > > > ------------------&nbsp;原始邮件&nbsp;------------------ > 发件人: "ttlock/iOS_SDK_Demo" @.&gt;; > 发送时间:&nbsp;2022年12月29日(星期四) 下午3:13 > @.&gt;; > @.&gt;; > 主题:&nbsp;[ttlock/iOS_SDK_Demo] Freeze lock issue (Issue #12) > > > > > > > When i check the lock support lockfreeze function: > > (BOOL)lockFeatureValue:(NSString )lockData > suportFunction:(TTLockFeatureValue)function; > ==&gt; It return true > But when call: > 1/ + (void)setLockConfigWithType:(TTLockConfigType)type > on:(BOOL)on > lockData:(NSString )lockData > success:(TTSucceedBlock)success > failure:(TTFailedBlock)failure; > 2/ + (void)getLockConfigWithType:(TTLockConfigType)type > lockData:(NSString )lockData > success:(TTGetLockConfigSuccessBlock)success > failure:(TTFailedBlock)failure; > > ==&gt; return error "The lock does not support this function" > Please help > > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you are subscribed to this thread.Message > ID: **@.***&gt; > > — > Reply to this email directly, view it on GitHub > < https://github.com/ttlock/iOS_SDK_Demo/issues/12#issuecomment-1367199175&gt;,

> or unsubscribe > < https://github.com/notifications/unsubscribe-auth/A47X27QJKK5AYIHW2DBVLDDWPVNTTANCNFSM6AAAAAATL3MV5E&gt;

> . > You are receiving this because you authored the thread.Message ID: > @.***> >

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/ttlock/iOS_SDK_Demo/issues/12#issuecomment-1367251902, or unsubscribe https://github.com/notifications/unsubscribe-auth/A47X27SCUSUEECI5QIJZCUDWPVYA3ANCNFSM6AAAAAATL3MV5E . You are receiving this because you authored the thread.Message ID: @.***>