From 42aa0da85efdd36c6d65674b8b7a5ac5c47058d1 Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Tue, 7 Jul 2020 05:56:07 -0400 Subject: [PATCH] Correct doc for alarm message-type value Value was previously 13111, now 110. Signed-off-by: Lott, Christopher (cl778h) Change-Id: I62ec74376b12125cb5dc16ceddf4bf439629a646 --- .gitattributes | 21 +++++++++++++++++++++ docs/alarm_api.rst | 2 +- ricxappframe/alarm/alarm.py | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..38b6a85 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,21 @@ +# https://help.github.com/articles/dealing-with-line-endings/ + +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files you want to always be normalized +# and converted to native line endings on checkout. +*.css text +*.htm text diff=html +*.html text diff=html +*.java text diff=java +*.js text +*.jsp text +*.less text +*.properties text +*.sql text +*.xml text + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary diff --git a/docs/alarm_api.rst b/docs/alarm_api.rst index 0734075..ffe37af 100644 --- a/docs/alarm_api.rst +++ b/docs/alarm_api.rst @@ -23,7 +23,7 @@ port number from environment variables defined as the constants `ALARM_MGR_SERVICE_NAME_ENV` and `ALARM_MGR_SERVICE_PORT_ENV` in the `ricxappframe.alarm.alarm` module. The message type is set to constant `RIC_ALARM_UPDATE` in the `ricxappframe.alarm.alarm` module, -currently 13111. +currently 110. The complete API for the Alarm feature appears below. diff --git a/ricxappframe/alarm/alarm.py b/ricxappframe/alarm/alarm.py index 3711165..1048ca7 100644 --- a/ricxappframe/alarm/alarm.py +++ b/ricxappframe/alarm/alarm.py @@ -42,7 +42,7 @@ RETRIES = 4 ############## # constants -RIC_ALARM_UPDATE = 110 +RIC_ALARM_UPDATE = 110 # message type ALARM_MGR_SERVICE_NAME_ENV = "ALARM_MGR_SERVICE_NAME" ALARM_MGR_SERVICE_PORT_ENV = "ALARM_MGR_SERVICE_PORT" -- 2.16.6