Menu

ws versus wss with Hub fonction

F. Chaxel
2022-12-06
2022-12-07
  • F. Chaxel

    F. Chaxel - 2022-12-06

    Hi all,

    I'm just start with BACnet/SC, so socket without TLS is required.

    For uncrypted Websocket I've change "wss" by "ws" but I have errors when trying to run TestHub

    TestHub.properties look like :

    sc.primaryHubURI            = ws://${x-sc-host}:4443
    sc.failoverHubURI           = ws://${x-sc-host}:4444
    sc.hubFunctionEnable        = true
    sc.hubFunctionBindURI       = ws://${x-sc-host}:4443
    sc.directConnectEnable      = false
    

    I get this loop message :

    SCConnection - CONFIGURATION: HCP#1 111111111111-(pending) in SC-1: Incorrect scheme in URI 'ws://100.64.68.216:4443'

    So no way with TestNode(s) with this TestHub.

    Some help will be appreciated.

    Thank's a lot

    Bye.

     
  • Dave Robin

    Dave Robin - 2022-12-06

    By default, all the behavior of the reference implementation complies with the standard. Since the use of "plain" WebSockets is not allowed by the standard, you have to specifically enable it with a configuration property: sc.allowPlain = true A note about this has been added to the README that will be pushed out with the 3.2 changes.

     
  • F. Chaxel

    F. Chaxel - 2022-12-07

    Hi,

    Thanks, works like a charm.

    Bye.

     

Log in to post a comment.