koffienl / ESPimaticRF

23 stars 6 forks source link

Can´t compile #1

Closed hyp3rx closed 7 years ago

hyp3rx commented 7 years ago

Hello, got:

exit status 1 'send_udp' was not declared in this scope

So can´t compile it !

koffienl commented 7 years ago

What version of Arduino IDE and ESP8266 core for arduino are you using?

hyp3rx commented 7 years ago

It was the wrong IDE Version. Now with 1.6.5 compiling works. But having now other problems inside pimatic.

error [pimatic]: Could not initialize the plugin "homeduino": receiverPin must be 0 or 1

What could be wrong ?

koffienl commented 7 years ago

The homeduino plugin (on the pimatic side) can't handle all the pin numberings used on the ESP side. Therefore these pin numbers in the plugin config are ignored on the ESP. Just provide some default pin numbers on the pimatic side:

{
  "plugin": "homeduino",
  "driver": "serialport",
  "driverOptions": {
    "serialDevice": "/dev/ttyUSB0",
    "baudrate": 115200
  },
  "receiverPin": 0,
  "transmitterPin": 4,
  "dstSearchAddressPin": 12
}

You can enter the actual pin numbers in the config on the ESPimaticRF side : https://github.com/koffienl/ESPimaticRF/wiki/Installing-ESPimaticRF#configuring-the-homeduino

hyp3rx commented 7 years ago

This is my config:

{
  "plugin": "homeduino",
  "driver": "serialport",
  "debug": true,
  "active": true,
  "driverOptions": {
    "serialDevice": "/dev/ttyUSB3",
    "baudrate": 115200
  },
  "receiverPin": 4,
  "transmitterPin": 5,
  "rfrepeats": 7,
  "enableReceiving": true,
  "apikey": "240282"
},

Still the same !

edit Understand .... it must be "0" will retest now !

koffienl commented 7 years ago

You are using pin numbers that the pimatic-homeduino plugin can't handle : https://pimatic.org/plugins/pimatic-homeduino/ Change it to:

 "receiverPin": 0,
  "transmitterPin": 4,
koffienl commented 7 years ago

Added to the wiki : https://github.com/koffienl/ESPimaticRF/wiki/Problems-&-Errors#im-getting-a-error-on-starting-the-pimatic-homeduino-plugin