AVR MQTT Esp8266 interfacing

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello there,

first things first , i'm using ATMega32 running freeRTOS also i have ESP8266-01 which is running perfectly tested by docklight and my laptop.

Now i'm seeking advice cause i'm bit confused for the past week i've been searching , i'm trying to interface my atmega32 with esp8266 also use MQTT protocol .

i've seen client libraries out there (paho c and other stuff) the mosquito broker is running on Raspberry pi and also tested via mqtt client application on my mobile phone .

i really don't know where to begin ?, but every (mqtt avr esp8266 search results) happened to be on arduino and that doesn't help at all.

 

so i'm asking where to look and what to look for in order to combine light MQtt lib to be interfaced by atmega32 also doesn't affect my running tasks ?

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why are the Arduino examples not of use to you? Arduino runs on mega32.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just add the MEGA core to your Arduino IDE and it will support your M32!

Why fight it?

 

Jim

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i use eclipse not Arduino IDE , i haven't dealt with arduino before all i know that arduino is based on avr . 

also i never before ported code of an arduino lib . i'm going in circles here i'm open to new ideas, so what is the best scenario to run freeRTOS and esp8266 over mqtt client 

i need something which is very light very basic just connect puplish/subscribe disconnect .cause only 2k of ram is available 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

You can use the ESP8266 with the Arduino IDE. As long as you don't need a lot of I/O, you could forget the ATMega32.

 

Four legs good, two legs bad, three legs stable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nope , that's what the project is all about. 

if there is some tutorial on ho to built your own mqtt C client it would be great .

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you look for arduino pubsub client, or something like that, you should find it.

I haven't used the Arduino stuff under Eclipse, though. It was on my list, as I use Eclipse for three or four other things, but in the meantime I got used to the Arduino IDE. Despite the naysayers, I find it very useful, and I've been bare-metal assembly and C programming for 40 something years.

https://github.com/knolleary/pub...

 

Four legs good, two legs bad, three legs stable.

Last Edited: Fri. May 17, 2019 - 02:54 PM