Comments (9)
Hi, I'm always glad to help!
Actually if you use MQTT you don't need this library :) Any Arduino MQTT library will be all you need.
I am not familiar with cayene-myDevices, so I can't say.
Again I'm glad I could help, I wish you best of luck with your project and a great weekend!
Gil.
from arduinowebsockets.
Hi Dennis!
Looks like you are trying to compile this library with an Arduino mega, but currently the library only supports ESP32 and ESP8266 boards.
Adding support for other boards will take time, and currently is not planned.
Sorry :(
Best regards,
Gil.
from arduinowebsockets.
Thanks a lot for your super fast response !
I will try to create an iOS app and access this Arduino server using web sockets for fastest performance.
Do you have any suggestions related to this project ?
I want to Access the Arduino server from external network using a custom iOS app for sending and reading data to and from Arduino using ONLY sockets !
(I just ordered 2 ESP32 boards of them from here: https://www.aliexpress.com/item/33038162831.html?&srcSns=sns_Copy&tid=white_backgroup_101&mb=e1ZJajPEVEMwbOg&tt=sns_Copy&aff_platform=default&cpt=1565328921466&sk=Ye0jDCG&aff_trace_key=1388d154c88a4d158f809fd50c108018-1565328921466-04446-Ye0jDCG&businessType=ProductDetail&platform=AE&terminal_id=9cbd87aad5c2478eac1f46668bc439b3
I will wait for them and try again setting an Arduino server.
)
from arduinowebsockets.
Hi,
Well, if you want to access the Arduino remotely you will need to setup port-forwarding on your local network (via your router settings). But, I must ask why Arduino?
I mean, ESP and Arduino boards are very very (very) weak and won't handle demanding computations. They are great when you want to do phisycal tasks, like control devices and sensors. If that's what you want to do with your app, esp32 is perfect! Otherwise, If you just need some computing power for a server I recommend AWS or other VPS service, and definitely not an Arduino.
If you want to have your own local server, and you are just looking for cheap computation power - consider a raspberry pi :)
Maybe I just didn't understand correctly your requirements. If so, please share more about your project 😃
Gil.
from arduinowebsockets.
I totally agree with everything you said which means that I am in the right path !
DyDNS and port forwarding are a MUST do in this project, yes.
Yes, I want to use ESP32 because the only thing that I want to do is what Blynk - app does without the need of an expensive machine, or complicated setups or expensive services in order to access the arduino from external networks etc.
I want to keep the cost as low as possible and build very very useful features which are based only of Switches, leds and sensors !
I don't need complicated tasks, only turning on relays, leds, detects sensors and smart home automation but with very minimal setup.
I want to build a small iOT system based on these really tiny ESP32 with DIY setup and totally custom features.
For the Rasberry PI I don't have knowledge I am not so fun of python :(
The advantage with the setup of ESP32 and iOS app will be that:
- the cost will be minimum,
- the cables and wiring also minimum,
- the power also minimum,
- the code with your great library minimum
- The sensors or other modules whichh can be used with Arduino will be very cheap
- and the iOS app can have very fast response because it will be based on sockets
- and nice custom native iOS UI based on the needs. I have seen Arduino-webServer-http solutions but I really hate these webViews and the speed/performance will be awful.
Also I can have 3-4 different ESP32s in the same network communicating each other, right ?
All of them can be in sync and gather data of all the rest boards in the same network
I can have only one of them act as the server and the iOS app will communicate only with that server-board.
Then the server-board can request values and sensor data from all the rest boards around the house.
Using your great library I can send and receive data from multiple ESP32s in the same network very easily, am I right ?
As soon as I have something useful I will try to post an article or an intractable of what I did !
I was also wondering: All these nice code and library that you have done is just for free right ? You don't make money of all this kind of work ? Can I make money if I build a great iOT service like the one that I just described ?
Thanks a lot for everything !
from arduinowebsockets.
Ok, sounds like a very cool project!
Also I can have 3-4 different ESP32s in the same network communicating each other, right ?
Sure, but it depends on how you set them up. I mean in order for them to know the ip's of one another you will either need to make some kind of dynamic-configuration mechanism. Or make them all get their configuration from a central server. Think about it.
Using your great library I can send and receive data from multiple ESP32s in the same network very easily, am I right ?
Yes, but to me it looks like you need the opposite, meaning you need one esp32 to handle multiple IOS devices, right?
Can I make money if I build a great iOT service like the one that I just described ?
Let me know, I'm more into free OS software 😃
I've read your post, I think you should sort out the exact details and design for your system. How components know of each other, how exactly they will communicate. Also, in your case I think a solution with MQTT is much better. It will save you a lot of code, and will help you with stuff like devices discoverability and management. MQTT is pretty much tailored to your needs, and there are plenty of tutorials about it with combination of ESP32.
Good luck!
from arduinowebsockets.
OMG !
After finding this tutorial:
http://www.iotsharing.com/2017/05/how-to-use-mqtt-to-build-smart-home-arduino-esp32.html
this service: https://www.cloudmqtt.com/
and this iOS app:
https://apps.apple.com/us/app/mqtt-buddy/id1252991874
I realised that I can do the above project using existing iOS apps and services without the need to build something from scratch !
So the question now is:
Why would I need this library if all the logic can be ready made from the above stuff/services ?
Why would I need to use sockets with Arduino and not the ready made service MQTT ?
Thanks a lot again for your super useful info that you are providing me !
Update: The cayene-myDevices looks pretty simple and easy to setup (https://mydevices.com/)
Would you recomend it ?
from arduinowebsockets.
I will try playing with Cayene and I will also try to use your library as a test.
then I will compare the performance and the speed while sending/receiving data to see if I notice important differences.
Maybe it is convenient to use both libraries. I could use this library for the local data exchange between the ESP32s in the same local network and then use only one of them to connect to MQTT service, I will decide after my initial tests-learning.
Thanks a lot for your guidance man, I am really glad for this conversation, have a great weekend too !
from arduinowebsockets.
😃
from arduinowebsockets.
Related Issues (20)
- Hieromon/AutoConnect & WebSockets Client on ESP8266 - Can't Establish wss
- Secured-ESP8266-Client can't seem to receive any messages while connection is open HOT 1
- Compilation error: 'WebsocketsClient' does not name a type ?? HOT 3
- Getting a error from the TCPServer using the Arduino GIGA R1 WIFI on the ESP-32Client code. HOT 10
- ESP32-CAM WebSocket Server: Failure to Stream Camera Feed after Page Refresh or Multiple Connections
- WSS Connection error
- [ 5236][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number" HOT 2
- Reconnecting after lost connection HOT 2
- Disconnecting almost inmediately
- Random disconnects, fails on binary ping including 0x00 HOT 1
- Issue with WSS and ESP 32 HOT 4
- Esp32 WebSocket Client won't work with WebSocket Node.js server. HOT 3
- Client-Message-Buffer
- ESP32 Server disconnected when receiving messages HOT 1
- Compilation errors with arduino_esp32 version 3.0.0 HOT 6
- wrong username
- Project is dead
- network::TcpServer* _server HOT 1
- Getting my connection closed when on node js wss server HOT 4
- Esp8266-Client example compiles with warnings, maybe others do too. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinowebsockets.