Got it to work ok after 'trial and terror' due to 'not in sync' problem. The link to boards.txt for this module was broken but found one on github and after that uploading was ok. One could ask for better documentation from manufactor to awoid so much uneccesary work!
I've got ewerything to work with wifi and so on but I am uncertain about what pin number to refer to in code. 'pinMode(D0, OUTPUT); //relay 1' gives error D0 not declared in this scope so apparently the pins are not mapped (this works with NodeMCU). Googling don't give much information. If one intend that pin start with 0 and the first two pins are serial Rx/Tx (as with UNO) then 'D0' should be pin 2 and so on. If I define pins code snippet below compiles ok but serial debug shows 'wdt' so something is wrong. If compiled on a Nodemcu evrything works ok so I believe that pin defines causes the wdt.
#if defined wifi_board_typeESPDUINO
Pin_level=0; //noninverted = 1 / inverted = 0
#define D0 2
#define D1 12
#define D2 3
#define D3 11
#define D4 4
#define D5 5
pinMode(D0, OUTPUT); //relay 1
pinMode(D1, OUTPUT); //relay 2
pinMode(D2, OUTPUT); //relay 3
pinMode(D3, OUTPUT); //relay 4
pinMode(D4, OUTPUT); //relay 5
pinMode(D5, OUTPUT); //relay 6
//set output pins to HIGH to start with relay off
digitalWrite(D0, HIGH);
digitalWrite(D1, HIGH);
digitalWrite(D2, HIGH);
digitalWrite(D3, HIGH);
digitalWrite(D4, HIGH);
digitalWrite(D5, HIGH);
#endif
Anone has any information about this ?
Any information appreciated