• HTTP document
    Show / Hide Table of Contents
    • Login Interface
      • Explanation of terms
      • Login
      • Refresh Login
    • Write Data Process
      • Add FGate Group
      • Add FGate
      • Add Monitoring Group
      • Add Monitoring Point
      • Get FGate List
      • FGate Monitoring List
      • Write Monitoring Value
      • Get Monitoring Value
    • Information Access
      • Get Single FGate
      • Get Monitoring Group
      • Get Some monitoring Points
      • Get Monitoring Point by Group
      • Get Iccid、Imei
      • Get Location of FGate
    • Remote Download
      • Get FGate Drive List
      • Download FGate Drive
      • Get Register Type of Device
      • Get Server Drive List
    • Modification Interface
      • Modify FGate Group
      • Modify FGate Name
      • Modify Monitoring
      • Modify Refresh Interval
    • Delete Interface
      • Delete FGate Group
      • Delete FGate
      • Delete Monitoring Group
      • Delete Monitoring Point
    • Alarm Interface
      • Alarm Group
        • Get Alarm Group List
        • Add Alarm Group
        • Modify Alarm Group
        • Delete Alarm Group
      • Alarm Contact
        • Get Alarm Contact List
        • Get Single Alarm Contact
        • Add Alarm contact
        • Modify Alarm Contact
        • Delete Alarm Contact
      • Alarm Record
        • Get Alarm Entry List
        • Get Alarm Entry
        • Add Alarm Entry
        • Modify Alarm Entry
        • Delete Alarm Entry
        • Get Historical Alarm
        • Get Alarm Entry Status
        • Confirm Alarm
    • Historical Data
      • Get Historical Data List
      • Get Historical Data Entry
      • Add Historical Record
      • Update Historical Record
      • Delete Historical Data
      • Get Historical Data
    • Push Monitoring Data
      • Enable Monitoring Group
      • Disable Monitoring Group
      • Enable Monitoring Group List
      • Disable Monitoring Group List
      • Enable All Monitoring Points
      • Disable All Monitoring Points
      • Enable One Monitoring Point
      • Disable One Monitoring Point
      • Enable Some Monitoring Points
      • Disable Some Monitoring Points
      • Enable Some Monitoring Points
      • Enable One Monitoring Group
      • Enable Some Monitoring Groups
    • Data Push(SignalR)
      • Real-time Data Push(signalR)
      • Status Change Push
      • Real-time Data Push
      • Alarm Trigger
      • Alarm Restore
    • Write in Batch
      • Get Bacth Write Group
      • Write Value in Batch
    • Appendix
      • Appendix One
      • Appendix Two
      • Appendix Three
      • 429 Status Code

    Data Push Related (SignalR)

    • Function Description

      Real-time data of all monitoring points is actively pushed by the server. Clients can control the opening of one or more monitoring groups. After opening, when data changes in the enabled group (changes that exceed the dead zone setting), the server actively pushes it to the client. The push function depends on the SignalR library.

    • .NET Official Documentation:

      https://www.asp.net/signalr

    For .NET libraries, please use Visual Studio's Nuget tool to download Microsoft.AspNet.WebApi.Client.

    JAVA and C# examples, please download from the online Q&A!!

    Creating a SignalR Connection

    • Request URL

      URL:SignalR URL obtained from the FGate listExplanation of terms

      querystring: at={token}&cid={X-FBox-ClientId}

      Field Type Description
      token string Access token obtained from the login interface
      X-FBox-ClientId string See Appendix One

      SignalR Service Hub Name: clientHub

    Note
    1、The token is valid for approximately two hours. 401 indicates token expiration. For new parameters, you need to re-call the login interface to get the access_token.

    ​ For old parameters, you need to refresh the access_token by re-logging in with the refresh_token. The refresh_token is valid for 30 days.
    ​ 2、Java demo and C# SDK handle token refresh and Signalr reconnection issues. If not using the demo, you need to handle this process in the program.

    ​ 3、 Signalr should maintain a long connection, develop with singletons.

    Back to top Generated by DocFX