Search the Community

Showing results for tags 'http'.



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

There are no results to display.


Found 6 results

  1. I am interfacing LM35 and SIM900 using MSP430F5529 board . For this purpose i am using Energia software . As we all know arduino code is compatible in Energia . Hence , I have used the same code that i used in Arduino Uno . The code works fine and i get my thingspeak channel updated with every HTTP request however , when i use Energia , it doesnt show any error , neither does it show/update my thingspeak channel . I had used Pin 7 and 8 for receiving and transmitting in Arduino . In Msp430 , I have used Pin P3.4 and P3.3 for receiving and transmitting . My Energia code is as follows - #include <SoftwareSerial.h> #include <String.h> SoftwareSerial mySerial(P3_4, P3_3); boolean pin2=LOW,pin3=LOW,pin4=LOW,pin5=LOW,pin6=LOW; float temp=0.0; void setup() { mySerial.begin(9600); // the GPRS baud rate Serial.begin(9600); // the GPRS baud rate pinMode(2,INPUT); pinMode(3,INPUT); pinMode(4,INPUT); pinMode(5,INPUT); pinMode(6,INPUT); delay(1000); } void loop() { temp=analogRead(A0); temp=temp*0.4887; delay(2); Send2Pachube(); if (mySerial.available()) Serial.write(mySerial.read()); } void Send2Pachube() { mySerial.println("AT"); delay(1000); mySerial.println("AT+CPIN?"); delay(1000); mySerial.println("AT+CREG?"); delay(1000); mySerial.println("AT+CGATT?"); delay(1000); mySerial.println("AT+CIPSHUT"); delay(1000); mySerial.println("AT+CIPSTATUS"); delay(2000); mySerial.println("AT+CIPMUX=0"); delay(2000); ShowSerialData(); mySerial.println("AT+CSTT=\"aircelgprs\"");//start task and setting the APN, delay(1000); ShowSerialData(); mySerial.println("AT+CIICR");//bring up wireless connection delay(3000); ShowSerialData(); mySerial.println("AT+CIFSR");//get local IP adress delay(2000); ShowSerialData(); mySerial.println("AT+CIPSPRT=0"); delay(3000); ShowSerialData(); mySerial.println("AT+CIPSTART=\"TCP\",\"api.thingspeak.com\",\"80\"");//start up the connection delay(6000); ShowSerialData(); mySerial.println("AT+CIPSEND");//begin send data to remote server delay(4000); ShowSerialData(); String str="GET https://api.thingspeak.com/update?api_key=--------C&field1=" + String(temp); mySerial.println(str);//begin send data to remote server delay(4000); ShowSerialData(); mySerial.println((char)26);//sending delay(5000);//waitting for reply, important! the time is base on the condition of internet mySerial.println(); ShowSerialData(); mySerial.println("AT+CIPSHUT");//close the connection delay(100); ShowSerialData(); } void ShowSerialData() { while(mySerial.available()!=0) Serial.write(mySerial.read()); }
  2. We are the creators of Mongoose - the most popular networking library. Mongoose supports HTTP, WebSocket, MQTT, CoAP, DNS, mDNS/DNS-SD (local device discovery) - both client and server mode. It works on top of SimpleLink and provides quite rich networking functionality. Together with the port, we provide a CCS example for MSP432 : https://github.com/cesanta/mongoose/tree/master/examples/MSP432/ccs We are looking for a feedback, and requests for ports to other devices.
  3. Hi, I am using the web client demo to send an HTTP GET request to a web server to read the data in json format. However the web server returns an error code 301 page moved error. How do I redirect my request to the new location? Does the ethernet library for TIVA support SSL HTTP GET requests?
  4. Hi there I have been testing CC3200 launchpad for IOT applications. Have been able to sucessfully post temperature data message using mqtt to iot.eclipse.org:1883 and read on Bluemix. Having difficulties to post data to SAP hana cloud platform that accepts HTTP Push with authentication header in json format. Have made setting on SAP side and tested using Postman (Chrome) and Hurl to push HTTP messages. Does any one have an idea on the code using Energia. Thanks Sunny
  5. Below is a link to the port of the Arduino Library HTTPClient for Energia/MSP430. It works with the latest version of Energia with F5529LP + CC3000 BoosterPack. Simply download/clone the library into the hardware/msp430/libraries folder of Energia and the library will appear upon restart. The library makes it easy to interact with web servers using Energia/MSP430. The included example shows how to download a webpage (energia.nu), check http response codes and display the content of the downloaded webpage. GitHub Link: https://github.com/zlalanne/HttpClient
  6. I am not sure if i am doing something wrong or if i have my environment setup wrong.. I have just pulled down and done a build of energia ( git clone https://github.com/energia/Energia.git /opt/energia.build && cd /opt/energia.build/build && ant linux64-build && ant linux64-run) It seemed to work fine when my daughter and I wrote her little whiskerbot, when I try to load up the sample simpleWebServer prog, i get compile errors. Here is what i have worked through so far - but now my limited C++ skills are shining through.. $ diff /opt/energia.build/libraries/SimplelinkWifi/examples/simpleWebServer/simpleWebServer.ino ~/sketchbook/simpleWebServerTEST/simpleWebServerTEST.ino 1,6c1 < // Enter here the name (=SSID) and password of your WiFi LAN < < #define WLAN_SSID "energia" // cannot be longer than 32 characters! < #define WLAN_PASS "supersecret" < < /* --- > /* 24c19,22 < #include "WiFi.h" --- > //#include "WiFi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/WiFi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/utility/SimplelinkWifi.h" > #include "/opt/energia.build/libraries/SimplelinkWifi/TCPserver.h" // TROUBLESHOOT - dont know if i need this. 26,27c24,25 < char ssid[] = WLAN_SSID; // your network SSID (name) < char pass[] = WLAN_PASS; // your network SSID (name) --- > char ssid[] = "mah-ssid"; // your network SSID (name) > char pass[] = "mah-passphrase"; // your WPA passphrase 36,39c34,39 < WiFi.setCSpin(18); // 18: P2_2 @ F5529, PE_0 @ LM4F/TM4C < WiFi.setENpin(2); // 2: P6_5 @ F5529, PB_5 @ LM4F/TM4C < WiFi.setIRQpin(19); // 19: P2_0 @ F5529, PB_2 @ LM4F/TM4C < --- > // WiFi.setCSpin(P2_2); // changing these to match up with the cc3000BOOST pinout > // WiFi.setENpin(P6_5); > // WiFi.setIRQpin(P2_0); > WiFi.setCSpin(PE_0); > WiFi.setENpin(PB_5); > WiFi.setIRQpin(PB_2); here are my compile errors: simpleWebServer.cpp.o: In function `printWifiData()': /opt/energia.build/build/linux/work/simpleWebServer.ino:207: undefined reference to `WiFiClass::localIP()' /opt/energia.build/build/linux/work/simpleWebServer.ino:213: undefined reference to `WiFiClass::macAddress(unsigned char*)' /opt/energia.build/build/linux/work/simpleWebServer.ino:228: undefined reference to `WiFiClass::firmwareVersion()' /opt/energia.build/build/linux/work/simpleWebServer.ino:234: undefined reference to `WiFiClass::subnetMask()' /opt/energia.build/build/linux/work/simpleWebServer.ino:239: undefined reference to `WiFiClass::gatewayIP()' /opt/energia.build/build/linux/work/simpleWebServer.ino:244: undefined reference to `WiFiClass::SSID()' /opt/energia.build/build/linux/work/simpleWebServer.ino:247: undefined reference to `WiFiClass::hostByName(char const*, IPAddress&)' /opt/energia.build/build/linux/work/simpleWebServer.ino:254: undefined reference to `WiFi' simpleWebServer.cpp.o: In function `setup': /opt/energia.build/build/linux/work/simpleWebServer.ino:37: undefined reference to `WiFiClass::setCSpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:38: undefined reference to `WiFiClass::setENpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:39: undefined reference to `WiFiClass::setIRQpin(unsigned char)' /opt/energia.build/build/linux/work/simpleWebServer.ino:50: undefined reference to `WiFiClass::begin(char*, char const*)' /opt/energia.build/build/linux/work/simpleWebServer.ino:52: undefined reference to `WiFiServer::begin()' /opt/energia.build/build/linux/work/simpleWebServer.ino:59: undefined reference to `WiFi' simpleWebServer.cpp.o: In function `__static_initialization_and_destruction_0': /opt/energia.build/build/linux/work/simpleWebServer.ino:27: undefined reference to `WiFiServer::WiFiServer(unsigned short)' /opt/energia.build/build/linux/work/simpleWebServer.ino:28: undefined reference to `WiFiClient::WiFiClient()' simpleWebServer.cpp.o: In function `loop': /opt/energia.build/build/linux/work/simpleWebServer.ino:63: undefined reference to `WiFiServer::available()' /opt/energia.build/build/linux/work/simpleWebServer.ino:65: undefined reference to `WiFiClient::operator bool()' /opt/energia.build/build/linux/work/simpleWebServer.ino:68: undefined reference to `WiFiClient::connected()' /opt/energia.build/build/linux/work/simpleWebServer.ino:70: undefined reference to `WiFiClient::available()' /opt/energia.build/build/linux/work/simpleWebServer.ino:71: undefined reference to `WiFiClient::read()' /opt/energia.build/build/linux/work/simpleWebServer.ino:107: undefined reference to `WiFiClient::stop()' collect2: error: ld returned 1 exit status Is my environment misconfigured or am i just jumping the gun with the SimpleLink stuff and should cool down while you guys work on it? edited for typos.