Search the Community

Showing results for tags 'ssl'.



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 5 results

  1. Hi there, Really excited to see the new release of Energia supporting the CC3200 launchpad! I just ordered some for myself. Does anyone know if there are plans to include the SSL demo for the CC3200 in Energia? Thank you!
  2. I've been tinkering with AWS IoT in conjunction with CC3200 + Energia for a while now with varying degrees of success. The purpose of this post is using the RESTful API to update a "thing" status in the cloud. The code is listed below and I'm seeing some authentication errors. I was hoping someone can correct me if there are any errors in the way I'm using "client.ssConnect". I used a slightly modified WiFiClient.cpp and WiFiClient.h from here. I know its not a library issue since I'm able to connect using MQTT. char aws_endpoint[] = "xxxxxxxxxxxxxx.iot.us-east-1.amazonaws.com"; if (client.sslConnect(aws_endpoint, 443)) { Serial.println("Connected to server"); String PostData = "{\"value1\" : \"testValue\", \"value2\" : \"Hello\", \"value3\" : \"World!\" }"; request = "POST /things/"; request += thingname; request += "/shadow"; request += " HTTP/1.1"; Serial.print("Request:\t"); Serial.println(request); Serial.print("Post data:\t"); Serial.println(PostData); client.println(request); client.println("Host: "); client.println(aws_endpoint); //client.println(":443"); client.println("User-Agent: Energia/1.1"); client.println("Connection: close"); client.println("Content-Type: application/json"); client.print("Content-Length: "); client.println(PostData.length()); client.println(); client.println(PostData); client.println(); } else { Serial.println("Connection failed"); } Serial.println(); // Capture response from the server. (10 second timeout) long timeOut = 5000; long lastTime = millis(); while((millis()-lastTime) < timeOut) { // Wait for incoming response from server while (client.available()) { // Characters incoming from the server char c = client.read(); // Read characters Serial.write(c); } } Here is the output that I see: RootCA found! Client certificates found! Device ID is: 3250763216 Attempting to connect to WiFi network . Connected to WiFi network: ABCDEFGH Waiting for IP IP is: 192.168.1.107 Connected to server Request: POST /things/MyCC3200/shadow HTTP/1.1 Post data: {\"value1\" : \"testValue\", \"value2\" : \"Hello\", \"value3\" : \"World!\" } HTTP/1.1 403 Forbidden content-type: application/json content-length: 91 date: Tue, 26 Jul 2016 11:46:59 GMT x-amzn-RequestId: 4d5388a9-e3c4-460a-b674-c3f971f3330d connection: Keep-Alive x-amzn-ErrorType: ForbiddenException: {"message":"Missing Authentication Token","traceId":"4d5388a9-e3c4-460a-b674-c3f971f3330d"}
  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. I am trying to talk to the Microsoft Azure Event Hub from Energia but I'm a little baffled! Using the WiFi library I seem to be getting a successful connect (returns true) but ... nothing seems to get posted... I am trying to build the message up as in this (javascript) example http://fabriccontroller.net/iot-with-azure-service-bus-event-hubs-authenticating-and-sending-from-any-type-of-device-net-and-js-samples/ but not seeing anything (even failed messages) reported in the event hub. I wanted to stick with Energia rather than switch to anything else, but after a couple of days banging my head on a wall I'm a little suck! Any ideas would be much appreciated (as I'm probably doing something dumb!) if there's a way to debug this / get error messages from the connection or the attempt to post that would be a huge help... Gotta use the Azure end point for this, so that's the one constant. char sas[] = "SharedAccessSignature {sig from the generation example}"; char serviceNamespace[] = "{ns}.servicebus.windows.net"; char hubName[] = "{hub}"; char deviceName[] = "device01"; void loop() { ////// WiFiClient client; float t = 10.1; client.stop(); // if there's a successful connection: if (client.connect(serviceNamespace, 443)) { Serial.println("connecting..."); // send the HTTP POST request: client.print("POST /"); client.print(hubName); client.print("/publishers/"); client.print(deviceName); client.println("/messages HTTP/1.1"); client.println("Host: www.arduino.cc"); client.println("Content-Type: application/atom+xml;type=entry;charset=utf-8"); client.print("Authorization: "); client.println(sas); client.println(); client.print("{ Temperature: "); client.print(t); client.println(" }"); client.println(); // note the time that the connection was made: delay(10000); } else { // if you couldn't make a connection: Serial.println("connection failed"); delay(1000000); } }
  5. Hi, I tried to use sslConnect to communicate with Azure Event Hub. Host for endpoint is stepanb-eh.servicebus.windows.net and I can't connect. If I use same code with another server for example www.google.com I can connect. Only difference I see is length of URL. Any hints? Hardware: CC3200 Lanchpad with latest firmware Stepan