Esp32 in Server Mode with Push Message

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

Overview:

I'm currently using an esp07-slave triggered by events that sends a message to the esp12-master. The esp12 then directs the ardunio to turn-off a solenoid & sends push notification to the app. The arduino also supports an HC-05 module linked to the android app. The simple app can open or close the solenoid. Arduino also uses a manual push button momentary switch to open or close the solenoid.

Objectives: Simplification

This project is to simplify the earlier project without losing any of the functionality. This projects will eliminate the arduino, and the HC-05 bt. Instead use the esp12 in server mode & the esp01 & android device in client mode to perform the same tasks as BLE.

1). Would need to plug the arduino code into the esp12 to control the solenoid & enable the esp12 server mode, The esp01 & app as client modes. See screen shot of how the code might be written for a server/client mode.

2). Enable the Esp12 to send & display temperature to my app. Make any necessary mods to the app temp page so the readings are displayed correctly. Trigger the solenoid closed at 32*F or 0*C temp reading.

Flow chart: Description (attached)

Master’s IP (assigned by the router, statically or dynamically (DHCP) is configured into slaves code so that slave can send data to master over GET request.

Master would connect to router to send data (Push Notification) to web, from web to android app. Slave pings to master’s IP to send GET request, and receives ECHO payload that contains the necessary data (active polling method).

Summary: 1. Client posts data to master , 2. Client retrieves acknowledgment after posting data to server-esp12, 3. Server-esp12 creates AP that client connects to, 4. Server-esp12 connects to router to send push notification to hosted web server, back to android 5. No internet access needed from router, for client, server or app talk. Intranet connected.

Brief description: (esp01- Client function)

Esp01 if triggered sends message to esp12 server to close solenoid & send push notification message. Green led is (ON) when client is in triggered state. When client is out of triggered state led is (OFF). When client is powered up the first time green led blinks (3) times.

Brief description: (esp12- Server function)

The server esp12 when triggered by the client closes the solenoid and sends push notification to android device. The esp12 can open or close the solenoid by momentary switch. Push once to close, Push again to open solenoid. This event also sends the push notification. The app can open or close the solenoid. The esp12 temp reading can trigger the solenoid closed & send push notification. When solenoid is closed red led is (ON). When solenoid is open green led is (ON), red led is (OFF). When esp12 receives message from esp01 Green led blinks (5) times. When esp12 is powered up for the first time green led blinks (3) times, then all led's are off.

Hardware components:

Client:

1. esp01

2. led

3. Trigger switch- 2 wire probes

Server:

1. esp12

2. 2 leds (Indicates if solenoid is open/closed by LED color)

3. Reset Switch

4. H-bridge > Solenoid

5. Temp sensor DS18B20

Attached flow chart.

Demonstration:

Should be able to demonstrate by short video clip that the esp01 communicates with the esp12 as described. Will provide the arduino/esp12-master/slave files formatted to open/close solenoid from earlier project.

The budget for this project is $125usd. Time frame 3-6 days.

Android Arduino C Programming Embedded Software Full Stack Development

Project ID: #20045319

About the project

5 proposals Remote project Active 4 years ago

5 freelancers are bidding on average $202 for this job

BlackStarGazer

Hello I Think this is more complicated than it should If you have a router that both ESP8266s connect to , you shouldn't use a web server to transfer data / signals etc . HTTP server involves a considerable lo More

$250 USD in 10 days
(5 Reviews)
4.8
stefanache

Hello, I already have all pieces ... so I will give you one tested solution. For arduino I will develop with MIT app inventor 2(visual programming) and for esp will work with c/c++(arduino ide .ino). Please post the on More

$223 USD in 10 days
(3 Reviews)
2.5
rtdxinc

I have designed a similar project for my undergrad were esps communicate with each other. The ESP can be turned into a client as well as server which isn't a tough thing to do. I can provide you complete code for that! More

$111 USD in 4 days
(3 Reviews)
1.5
eltonavieira

Hello We have been an engineer for more than 8 years in the market and have already developed projects for several companies using microcontrollers like PIC, AVR, Arduino, ARM, NXP, Nordic, Texas among others. Using t More

$300 USD in 10 days
(2 Reviews)
1.1
tomivs

I'm an expert developer with a lot of experience making projects using ESP8266 microchip and Arduino related boards. For this reason I think I'm the best candidate for this project.

$125 USD in 6 days
(0 Reviews)
2.0