X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=examples%2Fpong_xapp.py;fp=examples%2Fpong_xapp.py;h=863f635ef6c2d90403daa33256adcdfa6ae05575;hb=61270901cda095afdd3ce147bf0dfd628c84cf99;hp=5c90685e546e712792d07a21833aef26d8468e88;hpb=666e8319bd0e618576be79a14208d7eaf0de99f2;p=ric-plt%2Fxapp-frame-py.git diff --git a/examples/pong_xapp.py b/examples/pong_xapp.py index 5c90685..863f635 100644 --- a/examples/pong_xapp.py +++ b/examples/pong_xapp.py @@ -18,7 +18,7 @@ Test xapp 2 that works with 1 # limitations under the License. # ================================================================================== import json -from ricxappframe.xapp_frame import RMRXapp +from ricxappframe.xapp_frame import RMRXapp, rmr def post_init(_self): @@ -31,7 +31,7 @@ def sixtyh(self, summary, sbuf): self.logger.info("registered 60000 handler called!") # see comment in ping about this; bytes does not work with the ric mdc logger currently print(summary) - jpay = json.loads(summary["payload"]) + jpay = json.loads(summary[rmr.RMR_MS_MSG_PAYLOAD]) self.rmr_rts(sbuf, new_payload=json.dumps({"ACK": jpay["test_send"]}).encode(), new_mtype=60001, retries=100) self.rmr_free(sbuf)