We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

hello I need help please

asked 2017-11-03 21:37:24 +0200

betzabet gravatar image

updated 2017-11-03 21:39:54 +0200

 I have been trying to connect my arduino with my orion, no connection has been established with the orion, I already have the ports released in my arduino and in my orion something that is failing me this is my code.

include <esp8266wifi.h> // call the library

// ----- Then proceed to make the connection with your library ------- // // Here you are only sending your router or WiFi network

const char * ssid = "REDWIFI"; // proceed to send a call to the network const char * pass = ""; // Proceed to send your password

const int port = 1026; // Here we proceed to enable the port where you will be able to IPAddress serv (207,249,127,215); // Here we proceed to define the ip address where Serial.begin (115200); // Serial port. For people who are not familiar with arduino the serial port is the one that allows the communication of your software with your hardware Serial.println (); // line break. Serial.print ("Connecting to the network"); // Print message Serial.println (ssid); // Print the network to where you are connecting //WiFi.begin(ssid,pass); // Here you are connecting to your router or WiFi network WiFi.begin (ssid); // Making the connection with your router // - we proceed to perform a cycle - // while (WiFi.status ()! = WL_CONNECTED) {   delay (500); // Information per second   Serial.print ("."); // print   // While the connection is different to connected you will print a point } // close while // - After having consulted you have to print the following data - // Serial.println (""); // jump line Serial.println ("Connected Network"); Serial.println ("IP Address:"); Serial.print (WiFi.localIP ()); // Print the IP address of your arduino. Serial.println (); // This is what is implemented to make the connection with your Wi-Fi network } void loop () {   // ---- Here we will proceed to make the connection to the server --- //   // --- make a connection to the server   if (! client.connect (port, serv)) {     Serial.print ("connection failure");   } else {     Serial.print ("successful connection");   } } I have use wemosd1

edit retag flag offensive close merge delete


Could you share maybe a [pastebin](www.pastebin.com) link to make your code easier to read for everyone? Also, could you comment on which is the output error you are getting?

Martel gravatar imageMartel ( 2017-11-07 08:43:37 +0200 )edit
betzabet gravatar imagebetzabet ( 2017-11-07 18:11:11 +0200 )edit

the file isn't online. Maybe you set an expiration date too short or probably pastebin removes code if there are login, password, IPs information.

arigliano gravatar imagearigliano ( 2017-11-08 10:15:30 +0200 )edit

1 answer

Sort by » oldest newest most voted

answered 2017-11-07 16:34:49 +0200

arigliano gravatar image

As Martel said you should use pastebin to better show your code. Anyway, the Context Broker in your code seems to work correctly but I suggest you to update it to 1.7.0 version or higher

edit flag offensive delete link more


betzabet gravatar imagebetzabet ( 2017-11-07 18:10:26 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-11-03 21:37:24 +0200

Seen: 743 times

Last updated: Nov 07 '17