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.

CC3220MODA: Is there a limit on the number tokens that should be used in a PST request from HTML to Simplelink network processor?

Part Number: CC3220MODA

We tried to send 7 different tokens in a single post message from my html to network processor and the processor responded with some error code.

We couldnt figure out why it happened, but when we removed the last token being passed, everything worked as expected.

So, my question is, is there any limitation on the number of token that we can pass in a post request or is there a limitation of the number of characters that we can send in a post request from HTML to network processor?

  • Hi Sudhanshu,

    Yes, there are limits to the number of characters that can be sent in a single post request to the network processor related to the max TCP packet size.

    Are you referring to the maximum length of the entire request? How long is your entire message?

    Thanks,
    Ben M
  • Honestly, I haven't worked so much on javascript to know the length of the message that we are sending, but here is the snippet of my code which I am trying to send down from my html page to network processor.

    var type = "POST";
    var url = "api/1/netapp/set_urn";
    var data = { '__SL_P_S.D': “AP”, __SL_P_UDD: “Abcde Fghijkl Mnopqrst uvwxyza 123”, __SL_P_UDN: “ABC”, '__SL_P_S.C': “abc-12345678.com”, __SL_P_UDI: “1234”, '__SL_P_S.B' : “abc-12345678”}
    utility.apiRequest(type, url, data, updateSSID);

    The 'data' variable is the one which varies based on the user input from html. So the question arises, if the all the strings between { } are counted while calculating length of the message or only the information in " ".

    In first case, the total length is 173 characters.

    in second case the total length is 71 characters.

    Regards,

    Sudhanshu