botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
477 stars 215 forks source link

HTTPS SIM7000 #159

Open JGLJGL opened 4 years ago

JGLJGL commented 4 years ago

Hi, I have 3 main problems:

1) When following the SimCom HTTPS application note : HTTPS Function, I'm not able to do the POST. (already added the certificate needed) I have to do the post to https://www.atesens.com/api/v1/4444/telemetry (it's for testing).

2) Many times I get +SHCONN: ERROR without any aparent reason.

3) If I want to send this body: {"PM1":0.1,"PM25":0.50,"PM10":0.79,"FWVER":1,"HEAP":27575,"ICCID":"89314404000281747726","RELE01STAT":0,"RELE02STAT":0,"RELE03STAT":0,"OPSSTAT":1} how can I know the length of this body? Simply counting all the characters? If I send AT+SHBOD="{"PM1":0.1,"PM25":0.50,"PM10":0.79,"FWVER":1,"HEAP":27575,"ICCID":"89314404000281747726","RELE01STAT":0,"RELE02STAT":0,"RELE03STAT":0,"OPSSTAT":1}",146 then I get ERROR

jwallis commented 3 years ago

Hi JGL, did you ever get this to work? Are you certainly you got your certificate installed correctly?
Yes, I think you just count the characters. I would try 144,145,146,147. Also, you might have issues with " characters if the whole string is in quotes, but the string includes quotes