Skip to content

gusony/ESP8266_on_IoTtalk_v1

Repository files navigation

Contents

Pinout

ESP12F volt
Vcc 3.3v
GND GND
CH_PD 3.3V
TX RX
RX TX
GPIO0 HISH(LOW when upload)
Reset HIGH(LOW when used)

ENC28J60 Volt
Vcc 3.1V~3.6V(3.3V typical)
GND GND

❗❗❗
ESP8266 use 3.3V BUT! you can use a voltage regulator ([ASM1117-3.3](http://www.advanced-monolithic.com/pdf/ds1117.pdf )) AMS1117-3.3 Vin=5V, Vout=3.3V
So you can use 5V voltage.

Arduino IDE setting

Type Parameter
Board Generic ESP8266 Module
Flash Mode QIO
Flash Frequency 40MHz
CPU Frequency 80MHz
Flash size 4M(1M SPIFFS)
Debug port disabled
Debug Level None
Reset Method ck
Upload Speed 115200

Board

  • ESP8266 by ESP8266 Community ver 2.4.2

Arduino Library:

Set Library Parameter

[UIPEthernet/utility/uipethernet-conf.h]
    #define UIP_SOCKET_NUMPACKETS    2
    #define UIP_CONF_MAX_CONNECTIONS 2
    #define UIP_CONF_UDP_CONNS 1 //reduce memory usage
    #define UIP_CONNECT_TIMEOUT 5
[pubsubclient/src/PubSubClient.h]
    #define MQTT_MAX_PACKET_SIZE 512

Feature Work

  1. 用bs170替換
  2. 寫Init()
  3. arduinojson library update to 6.10.1 version
  4. Pubsubclient library update from 2.6.0 to 2.7.0

Variable

  • ServerIP/host : char array, global variable
  • ServerPort : #define , global variable

‼️

Notices

1.make sure that memory usage and point are used carefully


About

use ESP12F to connect to IoTtalk server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published