@Grubstake Hello! I thank you to this tip.
I already have a broker MQTT to many other tasks and I'm trying to collect data to automatically decisions. I would like to have the data so simple as possible and I thinking that MQTT would be like a bridge to my own interaction. I can see already data incoming in my MQTT broker, but it's no so clear as I want. In true, the only thing that i want is the mesh network and data sending as a string json or something like that - for this reason I choose MQTT, but MySensors has a protocol behind and nor MQTT messages are clear to me.
I will think a bit more about what I can do, but if you have some suggestion to only use mesh without other layers, please, let me know.
Posts made by Djames Suhanko
-
RE: Doubt about a concept in GatewayESP8266
-
RE: Doubt about a concept in GatewayESP8266
@mfalkvidd I confess you I have a lot of doubts about the data colection. My scenary is Arduinos sending data from sensors. I just need colect this data to insert in a database. Could you suggest some documentation or tutorial related to?
-
RE: Doubt about a concept in GatewayESP8266
@wallyllama Yes, I did a mistake when I wrote that.
-
RE: Doubt about a concept in GatewayESP8266
Hello, @mfalkvidd ! Thanks to answer.
I'm a Linux user. Could you recommend me another controler which supports my gateway server? -
Doubt about a concept in GatewayESP8266
Hello everyone!
I have a doubt here. I has uploaded GatewayESP8266 sketch to my NodeMCU. Ok, it's getting IP and NRF is working fine. Second step was add a hardware in Domoticz controller, running on my Linux desktop. I can see my NodeMCU receiving ping. So, I uncommented this in sketch:
#define MY_CONTROLLER_IP_ADDRESS 192,168,1,7
Above, you see the IP of machine which Domoticz is running. Then, I tried upload the sketch again, but I got a error related to this macro:In file included from /home/djames/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:39:0,
from /home/djames/Arduino/GatewayESP8266/GatewayESP8266.ino:132:
(a lot of directories).../WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'char'
size_t left = source.available();*I know that it's related to IP declaration, but I have no idea how to fix it. So, my main doubt is if I need to change any other parameter in this sketch to fix it. And, after that, does Domoticz will receive data from my ESP gateway, right?
Sorry my terrible english and I hope you can understand me.
-
RE: 💬 Building a Raspberry Pi Gateway
wow, it's was really fast! Thanks to answer. I'm use an ethernet interface. It's up but have no cable on their. I didn't install a controller yet, so, is there no problem yet, right?
Sorry that, I'm really a newbie using MySensors.[updating]
ysgw: Starting gateway...
mysgw: Protocol version - 2.1.1
mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: !TSM:INIT:TSP FAIL
mysgw: TSM:FAIL:CNT=1
mysgw: TSM:FAIL:PDT
mysgw: TSM:FAIL:RE-INIT
mysgw: TSM:INIT
mysgw: !TSM:INIT:TSP FAIL
mysgw: TSM:FAIL:CNT=2
mysgw: TSM:FAIL:PDT -
RE: 💬 Building a Raspberry Pi Gateway
Hello, all!
I read a lot of comments to find a solution to my problem, but seems it's something that I couldn't understand yet.The old version was working in my Raspberry Pi using Raspbian Wheeze, so, to install the new version i updated my system until the latest version (Raspbian Stetch). I could compile MySensors, but I'm getting the common error when testing with mysgw -d:
"MYSGW: MCD:BGN INIT GW, CP=RNNG---,VER-2.1.1" and so on.I used this parameters in configure:
./configure --my-transport=nrf24 --my-gateway=ethernet
--my-port=5003 --my-controlle-ip-address=192.168.1.2
--my-gateway=mqtt --my-mqtt-publish-topic-prefix=mysensors-out
--my-mqtt-subscribe-topic-prefix=mysensors-in
--my-mqtt-client-id=mygateway1I couldn't find a solution yet. Can someone help me?
-
RE: 💬 Building a Raspberry Pi Gateway
@mfalkvidd Yes, I'm using 1.5. Thank you for suggest me the newer version. I will update it today!
-
RE: 💬 Building a Raspberry Pi Gateway
@gohan Thank you to answer! Good tip, I will do that!
-
RE: 💬 Building a Raspberry Pi Gateway
Hi.
I have a Raspberry Pi already configured as gateway, but I don't know how to interact with. I means, how can I read incoming data from? I tried open /dev/ttyMySensorsGateway as a common serial port but I got a message error:
cu: open (/dev/ttyMySensorsGateway): Permission denied
cu: /dev/ttyMySensorsGateway: Line in use
With 'ps ax' command I can see only '/usr/local/sbin/PiGatewaySerial -d' running as a deamon.
Could someone explain me what's ne next step for?