Advertisement
Guest User

SIM7000 HTTPS

a guest
Feb 3rd, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | Software | 0 0
  1. AT+CNACT=1,"apn" # your apn
  2. OK
  3. +APP PDP: ACTIVE
  4. AT+CNACT?
  5. +CNACT: 1,"10.xxx.xxx.xxx"
  6. OK
  7. AT+CSSLCFG="ignorertctime",1,1
  8. OK
  9. AT+CSSLCFG="sslversion",1,3
  10. OK
  11. AT+CSSLCFG="sni",1,"example.com" # configures server name indication for cloud servers
  12. OK
  13. AT+SHSSL=1,"" # ignores certificate validation
  14. OK
  15. AT+SHCONF="BODYLEN",1024 # maximum body size (send in bytes)
  16. OK
  17. AT+SHCONF="HEADERLEN",350 # max header size (send in bytes)
  18. OK
  19. AT+SHCONF="URL","https://example.com"
  20. OK
  21. AT+CCLK="24/11/16,00:04:58+00" # the current time
  22. OK
  23. AT+SHCONN # establish the connection to the server
  24. OK
  25. AT+SHAHEAD="Content-Type","text"
  26. OK
  27. AT+SHAHEAD="User-Agent","curl/7.47.0"
  28. OK
  29. AT+SHAHEAD="Cache-control","no-cache"
  30. OK
  31. AT+SHAHEAD="Accept","*/*"
  32. OK
  33. AT+SHBOD="your_body",9
  34. OK
  35. AT+SHREQ="/path/to/endpoint",3 # execute the request
  36. OK
  37. +SHREQ: "POST",200,2
  38. AT+SHREAD=0,2
  39. OK
  40. +SHREAD: 2
  41. OK
  42. AT+SHDISC
  43. OK
  44. AT+CNACT=0
  45. OK
  46. +APP PDP: DEACTIVE
  47. # reconfigure the ssl connection each time
Tags: SIM7000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement