svgui/pyjs/jsonrpc/README.txt
author Edouard Tisserant
Tue, 16 Feb 2021 11:32:00 +0100
branchsvghmi
changeset 3145 80ebb88cf7b7
parent 728 e0424e96e3fd
permissions -rw-r--r--
SVGHMI: Fixed sending HMI_REAL to PLC. Added a svghmi_real test that illustrates using printf style formating in HMI:Display to control precision of Float number display.
These classes are intended for use server-side.

e.g. in a django view.py :

    from pyjs.jsonrpc.django import JSONService, jsonremote

    jsonservice = JSONRPCService()

    @jsonremote(jsonservice)
    def test(request, echo_param):
         return "echoing the param back: %s" % echo_param