Search the Community

Showing results for tags 'client'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

  • Community Calendar

Found 2 results

  1. Hi, I am using MQTT client on CC3200 with Energia. Case1=> When CC3200 is connected to wifi router and there is Internet connection on the router, I received data on MQTT and there was no delay in connection of either tcp or mqtt client. Case2=> This case is valid only when CC3200 is connected to the router but there is no Internet on it. Now the issue is that as cc3200 is connected to the router with no Internet, it will try again and again to establish MQTT connection. But when it tries to establish tcp client connection it takes 28 seconds and when return code from tcp arrives only then the rest of the code resumes to work. It hangs in that part. Is there any way to reduce this time by changing any parameter in the library? I found one constructor in MQTTclient.h library. Client(Network& network, unsigned int command_timeout_ms =30000); I changed the command timeout value by different ones but no change was observed. It was still taking 28 seconds. After that tcp return code came as 0 which indicated that tcp connection was not made. I would like to ask that is there any way to reduce this time. Like can the time it is waiting for return code be changed.Can it be made less? Please reply asap. Waiting for your guidance robertinant@yahoo.com.
  2. Hi , I have written a code for ethernet client using TM4c1294NCPDT launchpad and I am sending data to a server at api.pushingbox.com. The code sends data to the server after every 15 seconds, It works all the time, however sometimes suddenly the ethernet data transfer hangs, the microcontroller does not hang. Below is the void loop() I have used.Please help. void loop(){ kemasData(); //packing GET query with data Serial.println("connecting..."); if (client.connect(server, 80)) { sendData(); // koneksi = true; //connected = true u.count++; Serial.println(length); length = 0; EEPROM.write(0,u.b[0]); EEPROM.write(1,u.b[1]); Serial.println("conn serv"); } else{ Serial.println("connection failed"); } // loop while(client.connected()){ while (client.available()) { char c = client.read(); //save http header to c Serial.print(c); //print http header to serial monitor } //Serial.print("-"); } if (!client.connected()) { Serial.println(); Serial.println("disconnecting."); Serial.print("Count :"); Serial.println(u.count); //print sent value to serial monitor client.stop(); Serial.println("Client Stopped"); // koneksi = false; Serial.println("koneksi = false"); data = ""; //data reset } delay(15000); // interval } When I check the serial port the code hangs at conn serv printed above.