iotplatformkaa

What files specfically contain the Kaa-node IP address


I have a quick question.

I've spent a couple of hours Googling this but I can't seem to find an answer.

Where exactly in the Kaa C SDK is the host IP address of the kaa-node embedded? I know that each time you update the IP address of the Sandbox using the Management page, you have to regenerate the SDK. But in my case, the SDK that has generated has taken me many hours to debug and fix, and I would not like to repeat that process all over again.

Instead, I would prefer just fixing the one or two files that contain the updated IP address. But does anyone know which files these are?

I've heard that they are in the bootstrap extension header files. Is this true?

Thank you!


Solution

  • During the SDK generation (for security purposes), a list of the available bootstrap nodes are embedded on a header file (except Java SDK). This header file is saved as kaa_defaults.h and can be encountered in your generated C SDK files.

    If you wanna see the C SDK generation code, you can find it here.

    I don't think you'll be able to change manually the address on this file, or if there's another way instead of re-generating a SDK with the new address of your instances.