Skip to content

how to make IOT Agent to use HTTPS to communicate with Orion contextBroker? #584

@guillemtnezh

Description

@guillemtnezh

I've just configured Orion CB to work (ONLY) with HTTPS. But now i need IOT Agent to make the requests through https.

In my scenario, my device PUTS info ocassionally, which i'm simulating with a cUrl.

At node_modules>iotagent-node-lib>lib>services>ngsi>entities-NGSI-v1.js, it fails making the sendUpdateValueNgsi1 function, right here in the request:

`

            request(
                options,
                generateNGSIOperationHandler('update', entityName, typeInformation, token, options, callback)
            );

`
Specifically it catches the error when entering at generateNGSIOperationHandler function.
In my opinion it's because I'm doing an http request. Any idea of how to make that request in https?

thanks in advance

( @fgalan )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions