Jump to content
43oh

electrotwelve

Members
  • Content Count

    18
  • Joined

  • Last visited

About electrotwelve

  • Rank
    Member

Recent Profile Visitors

685 profile views
  1. Thanks folks. As it turns out I was using the wrong port. Its supposed to be 8443 instead of 443. With that in place, everything worked great! I also had to modify the PostData format to match what AWS needs it to be.
  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 (clien
  3. OK I got this figured. The challenge was switching back to AP once STA mode was activated. This code switches back to AP from whatever earlier mode was set. 'ssid' and 'wifipw' is the SSID and password defined for the AP. extern "C" { #include "utility/udma_if.h" } void switchToAP() { UDMAInit(); sl_Start(NULL, NULL, NULL); sl_WlanDisconnect(); sl_NetAppMDNSUnRegisterService(0, 0); sl_WlanRxStatStart(); sl_WlanSetMode(ROLE_AP); sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, strlen(ssid), (unsigned char *)ssid); unsigned char
  4. Can anyone help? I've gotten it working but when a power cycle occurs the device starts up again in AP mode and it freezes. I have to reflash the service pack to get it working again.
  5. I know this is an old topic but I'm facing similar issues. I started up in AP mode, started a webserver and got the network credentials from the user. Switched to STA mode (using the fixes listed earlier in this post) and then connected to my local wifi network. Now this works great till a power cycle happens. When that happens, the CC3200 is supposed to start back up in AP mode and this is where it freezes. I have to reflash the service pack and then it goes back to the AP mode. Any solutions or ideas?
  6. Been working on an application that would: 1. Start the CC3200 and setup a webserver on 192.168.1.1 on port 80. 2. The user connects to the WiFi networks created by the CC3200 and subsequently this webserver and enters their network credentials. 3. The CC3200 parses these credentials and stores it in a buffer called credential_buffer and the SSID and password are pointed to by accSSID and accPWD. I now want to use these credentials to connect to the users WiFi network and this is where I run aground. I swtich the CC3200 from the AP to STN mode using sl_WlanSetMode(ROLE_STA) but that
  7. My subnet is 255.255.255.0 and my broadcast IP is 192.168.1.255. I'm trying to broadcast UDP packets using this code but I'm not sure its working. When I open my IP and port on SocketTest, I don't see anything on the console. What am I missing? unsigned int localPort = 2390; char sendBuffer[] = {"pullingyourhairoutisnotthesolution"}; WiFiUDP BroadcastSendUDP; void sendBroadcastPacket() { IPAddress sendIP(192, 168, 1, 101); int counter = (sizeof(sendBuffer)/sizeof(sendBuffer[0])); BroadcastSendUDP.beginPacket(sendIP, localPort); for (int i=0; i<counter; i++) { BroadcastSen
  8. Thanks Robert. This however, returns the profile security type as a positive number. Is there any way to get the actual SSID? @@Rei Vilo, Could you walk me through how you've implemented this in real-life? Perhaps share the code? I thought of setting up the CC3200 in AP mode when its out of the box, and then connecting to it and sending it WiFi creds of the local network. However, after this it would switch to Station mode and my problem is how would it recognize the mobile app that sent it the creds in the first place. Essentially how would it communicate with the app after becom
  9. I've been reading up on this and I was wondering if there is a way to access an already stored WiFi connection profile? Also, is the smartconfig production ready? I remember reading somewhere that it was not quite there yet and that it would not work with some networks.
  10. Hi @@Fmilburn, I think I've got this working for now. There seem to be two variants for the encrytionType function and the default Energia example is calling the one which does not accept arguments: uint8_t WiFiClass::encryptionType() { return 0; } I changed the return value to verify this and it is indeed this one that is being called. The other variant accepts an integer value as an argument presumably the SSID number. I borrowed code sections from the ScanNetworks example. I compared the string returned by WiFi.encryptionType with the defined SSID and when they matched I printed o
  11. Hi, I've been following the ConnectWithWPA example to see the encryption type. However, it keeps showing me "Encryption Type: 0". What does this mean? Also what does the AUTO return value mean? (from this reference: http://energia.nu/reference/wifi/wifi_encryptiontype)
  12. Can anyone point me to the location of .bin files generated by Energia on compilation? Could I use these files for flashing through Uniflash?
  13. Is there a way to wake the CC3200 via WiFi? I read this post but can someone let me know if this is operational in the latest version of Energia?
  14. Yeah I've seen folks posting similar issues as well. Also, I tried the SmartConfig exmaple and the same thing happened. The app timed out. I had to reflash the service pack and then it worked.
×
×
  • Create New...