Salamek / huawei-lte-api

API For huawei LAN/WAN LTE Modems
GNU Lesser General Public License v3.0
376 stars 92 forks source link

Fix: Unlock PIN method returning 101006 Unknown Error #224

Closed Luigi31415 closed 3 months ago

Luigi31415 commented 3 months ago

What was wrong:

The unlock_pin method was returning the error code 101006 Unknown Error and failing to unlock the PIN on certain modem models, including the E3372.

What you did to fix it:

The cause of this issue was identified as incorrectly typing the data provided to the /pin/operate endpoint. Additionally, The request was not encrypting the data sent.

Any additional testing or considerations:

I tested the fix on one modem model, The E3372.

This fix should resolve the issues detailed in Issue #223. Please review the changes and let me know if further adjustments are needed.