Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

How to publish MQTT feed value using web nrowser
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

How to publish MQTT feed value using web nrowser

by pcpancholi on Tue Aug 11, 2020 2:09 pm

message text : I am not able to publish value to feed using url typed in
Chrome browser.

I want to update feed value using Chrome browse ..
I am using this url

https://io.adafruit.com/api/v2/io_usern ... &value=123
plz help me

pcpancholi
 
Posts: 2
Joined: Mon Aug 10, 2020 3:08 pm

Re: How to publish MQTT feed value using web nrowser

by brubell on Wed Aug 12, 2020 1:37 pm

You wouldn't be able to do it by entering the URL into your browser.

You'll need a way to make a HTTP request (We suggest using CURL). For example,

Code: Select all | TOGGLE FULL SIZE
# Send new data with a value of 42
$ curl -F 'value=42' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data



Ref: https://io.adafruit.com/api/docs/#create-data

brubell
 
Posts: 1043
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.