Farshad Nabizadeh
Farshad Nabizadeh

Reputation: 41

How to set user data parameter for Authorization Bearer in sim800c

I am trying to send data to a server using sim800c with bearer token authentication. Using Postman the config is like picture below : Postman Config

Postman Config

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

Sim800c Error

how can I use this command properly?

Upvotes: 1

Views: 760

Answers (1)

Farshad Nabizadeh
Farshad Nabizadeh

Reputation: 41

The problem was the quotation marks. Command works like this:

AT+HTTPPARA="USERDATA","Authorization: Bearer [My Token]"\r\n

Upvotes: 0

Related Questions