I am running the following code in EK-TM4C1294XL Launchpad.The program gets downloaded successfully and I am able to see the published messages in the MQTT BOX application.But when I download the same program in another launchpad and try to run both at the same time , one launchpad stopped sending data.How to run two MQTT publishers publishing to same topic .Is there any changes required in the code?
#define MQTTCLIENT_QOS2 1
int arrivedcount = 0;
void messageArrived(MQTT::MessageData& md)
MQTT::Message &message = md.message;
MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
data.MQTTVersion = 3;
data.clientID.cstring = (char*)"energia-sample";
rc = client.connect(data);
if (rc != 0)
sprintf(printbuf, "rc from MQTT connect is %d\n", rc);
rc = client.subscribe(topic, MQTT::QOS2, messageArrived);
if (rc != 0)
sprintf(printbuf, "rc from MQTT subscribe is %d\n", rc);
Serial.println("\nIP Address obtained");
// We are connected and have an IP address.
start simply is really the best idea. I got it running now: It wrote in the micro sd card and when I read it matched. This time not with "zeros".
What was the problem: the supply voltage. Since I am using a shield for Arduino to interface the sd card, its supply was 5V, not 3.3V. What should be happening is that the writing and reading run perfectly but in 3.3V the current is not enough to write. Solved!🙂
When I placed the micro sd card in the computer adapter it could not read because there's no file system. Actually, this is still a problem I don't know how to solve... Any suggestions?
Although the Arduino IDE should be able to consume the Energia packages, there is a difference between the arduino-builder in Arduino and Energia which makes the msp432 package incompatible with the Arduino IDE. See the pull request here: https://github.com/arduino/arduino-builder/pull/119. I have it on my list to find a different solution and be able to use the stock arduino-builder at which point the Arduino IDE should be able to consume the Energia package.
For TivaC and MSP430, it is possible to use it in the Arduino IDE. Just put this in the preferences: http://energia.nu/packages/package_energia_index.json. Then pull up the board manager and install TivaC support.
Hi Chris, could you please help fix your RocketBadge programming page or point us to an alternate? I'm with Texas Instruments and I've provided hundreds of these to students to learn how to solder, but they say the site to program them (https://43oh.com/Badge) no longer works. Thanks! Jason, University Marketing Manager
Hello, TI Launchpad is a hobby for raining days. For example, domotic in my home, ....
I use Energia or TI CCS, to write my code. I'm not professional, I Learn myself C++ and how to use TI CCS software.
I'm Professional in service for electronics, network devices in customers sites.
I live in France, sorry for my mistakes with English Language.
I'll try to share you , bad experiences, found solutions.
Have a nice Day.
I would like to have a rtc code for internal rtc activation of tm4c123g. I need rtc for my project for real time date and time display using this controller. Please guide me or give me an energia code for general date and time display using internal rtc of tm4c123g