Reputation: 41
I am trying to send data to a server using sim800c with bearer token authentication. Using Postman the config is like picture below :
to add this header to my post request I'm using:
AT+HTTPPARA="USERDATA","Authorization: \"Bearer [My Token]\""\r\n
but in debug console I get :
+CME ERROR: invalid index
how can I use this command properly?
Upvotes: 1
Views: 760
Reputation: 41
The problem was the quotation marks. Command works like this:
AT+HTTPPARA="USERDATA","Authorization: Bearer [My Token]"\r\n
Upvotes: 0