0

I've seen a few different User-Agents used in demo sketches and am curious as to what the various User-Agent options are and how to determine which one to use.

For example...
User-Agent: Mozilla/4.0
User-Agent: Arduino/1.0
User-Agent: ESP8266
User-Agent: ArduinoWiFi/1.1

I've used Arduino/1.0 successfully with an Uno/WiFi101 but want to use an ESP8266 now. Do I continue using Arduino/1.0 or switch to ESP8266 (Arduino IDE 1.6.5)?

When would someone use Mozilla?

Any guidance is appreciated.

asked Aug 13, 2016 at 17:59

1 Answer 1

3

You can use anything you like. It's used by the remote server to (try and) determine what browser you're using in order to give you the best visual experience. On an Arduino you really don't care about the visual experience. You don't even need to provide a User-Agent field, but it is courteous to do so.

answered Aug 13, 2016 at 18:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.