Arduino UNO web client with HLK-RM04. [Request a Web page]


hello everyone.

i have being trying connect arduino uno internet using hlk-rm04 modulo.

i connected hlk-rm04 in server mode, arduino answered me want access internet (to access point), host specific ip or whatever connect , send information webpage.

code: [select]

+----------+              +-------------+            +-------------------------------------+
| arduino  |    --------> |  hlk-rm04 |  ----------> +       internet: http://google.com   |
+----------+              +-------------+            +-------------------------------------+





i tried sending on serial por arduino hlk-rm04 request:

the hlk-rm04 connected access point.

code: [select]

get / http/1.1
host: google.com
connection: keep-alive
cache-control: max-age=0
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
user-agent: mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/39.0.2171.95 safari/537.36
accept-encoding: gzip, deflate, sdch
accept-language: en-us,en;q=0.8,es;q=0.6


but nothing happens.

  • am doing right sending request?
  • how can access internet arduino using hlk-rm04?


thanks.



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Arduino UNO web client with HLK-RM04. [Request a Web page]


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code