# Wifi connection Cactus Micro Rev2

**URL:** <https://bbs.aprbrother.com/t/wifi-connection-cactus-micro-rev2/757>\
**Category:** Arduino\
**Created:** [October 25, 2016, 7:15am UTC](https://bbs.aprbrother.com/t/wifi-connection-cactus-micro-rev2/757 "2016-10-25T07:15:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/d/258eb7/32.png) [@davide](https://bbs.aprbrother.com/u/davide)\
**Post date:** [October 25, 2016, 7:15am UTC](https://bbs.aprbrother.com/t/wifi-connection-cactus-micro-rev2/757/1 "2016-10-25T07:15:50Z")

</div>

Hello everybody. I’m trying to learn Arduino environment and I started it with a Cactus Micro Rev2. Cutting parts from codes found on internet, I have this code:  
#include \< espduino.h \>

#define PIN\_ENABLE\_ESP 13  
#define SSID “**"  
 #define PASS "**”

ESP esp(&Serial1, PIN\_ENABLE\_ESP);

void setup() {  
Serial1.begin(19200);  
esp.enable();  
delay(500);  
esp.reset();  
delay(500);  
while(!esp.ready());  
esp.wifiConnect(SSID, PASS);  
}

void loop() {  
}

I have now some question I can’t answer:

- Is it the shortest code possible to get a wifi connection?
- How can I set a static IP?
- Which are the esp. commands available?
- Can anybody give me the right code to send an email (probably with ifttt), please?

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [October 25, 2016, 7:24am UTC](https://bbs.aprbrother.com/t/wifi-connection-cactus-micro-rev2/757/2 "2016-10-25T07:24:13Z")

</div>

I think it’s the shortest code for connecting wifi. Please check [our wiki](http://wiki.aprbrother.com/wiki/Cactus_Micro_Starter_Guide) first.

---

<div class="post-metadata">

**Author:** ![davide](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/d/258eb7/32.png) [@davide](https://bbs.aprbrother.com/u/davide)\
**Post date:** [October 25, 2016, 7:41am UTC](https://bbs.aprbrother.com/t/wifi-connection-cactus-micro-rev2/757/3 "2016-10-25T07:41:59Z")

</div>

I already did it but perhaps my knowledge is too low to understand it. I didn’t find any help there.  
Do you mean I have to upload the firmware for “AT commands”?  
I’m sorry but I find your wiki chaotic and messy and I can’t find any help there.
