This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: IBM Watson IOT - Simplelink SDK Plugin help

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: UNIFLASH

Hello,

In an attempt to recreate what seems to be a simple plugin I seem to be running into the same error:

I am unsure as to what the error could be? It was thought to be the firewall but after allowing access it still came back with the same error. No matter which network I connect to, guest or main, i return again with the same error. Lastly I thought the error could be from having an outdated service pack so I downloaded the most recent and flashed it with uniflash.

I have been trying to follow along with the IBM setup example provided:

dev.ti.com/.../

but this too has not helped me very much.

I am going to attempt this on my personal computer at home but as for now i am attempring to fix the problem at work.

For reference I am using the Cloud version of CCS I am unsure if this is affecting whether or not the plug in will work.

  • Hi Chris,

    When you say that you are trying to recreate a simple plugin, are you referring to watson_mqttclient example in the IBM Watson plugin? I have verified that the example in the plugin works as-is, with the only modification needed being to add your network details in network_if.h. If you want to confirm that the issue is not being caused by network issues I would run the example from the plugin as a test.

    Failing that, I would diff the files in the watson_mqttclient example against the files you currently have. The watson_mqttclient example should be very similar, if not identical, to the end result of the SimpleLink Academy module you have linked.

    Regards,
    Michael
  • Yes I trying to run the Watson MQTT_client SDK plug in. I understand it should run as is with the modifications of the network file but I keep getting the previously posted error. I did think that the company firewall was stopping the transaction which I worked with IT to allow the plug in through but I am still getting the same error. At this point I am unsure if the firewall is still halting the connection or if I made the incorrect edit.

    In the mqtt_client_app.c file i noticed that the "SERVER_ADDRESS" doesn't match the URL when open the ibm quickstart site. Could this be a problem?

    On a side note I am trying to set a static IP address but upon pinging it within the network it isnt being set and the old ip from the original code is still pinging. I will include the change I made to the network file below:

    long Network_IF_IpConfigGet(unsigned long *pulIP,
                                unsigned long *pulSubnetMask,
                                unsigned long *pulDefaultGateway,
                                unsigned long *pulDNSServer)
    {
        unsigned short usDHCP = 0;
        long lRetVal = -1;
        unsigned short len = sizeof(SlNetCfgIpV4Args_t);
        SlNetCfgIpV4Args_t ipV4 = { 0 };
    
        /* get network configuration                                             */
        /* My Edits*/
        ipV4.Ip           = (_u32)SL_IPV4_VAL(172,30,5,50);
        ipV4.IpMask       = (_u32)SL_IPV4_VAL(255,255,255,0);
        ipV4.IpGateway    = (_u32)SL_IPV4_VAL(172,30,5,254);
        ipV4.IpDnsServer  = (_u32)SL_IPV4_VAL(100,101,102,242);
        lRetVal =
            sl_NetCfgSet(SL_NETCFG_IPV4_STA_ADDR_MODE,SL_NETCFG_ADDR_STATIC, &len, (_u8 *) &ipV4);
            
        /*Original Code */
        //lRetVal =
        //    sl_NetCfgGet(SL_NETCFG_IPV4_STA_ADDR_MODE, &usDHCP, &len, (_u8 *) &ipV4);
        //ASSERT_ON_ERROR(lRetVal);
        
        *pulIP = ipV4.Ip;
        *pulSubnetMask = ipV4.IpMask;
        *pulDefaultGateway = ipV4.IpGateway;
        *pulDefaultGateway = ipV4.IpDnsServer;
    
        return(lRetVal);
    }