You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 3. API Sending Logic - results are saved to api_message for display
138
145
try:
139
146
iflen(pending_packet_list) >0:
@@ -152,7 +159,7 @@ def label_thread():
152
159
)
153
160
ifresponse.status_code==200:
154
161
logger.info(f"[Packets] {time.strftime('%Y-%m-%d %H:%M:%S')} - All packets sent successfully.")
155
-
common.config_set('api_message', f"success| {len(pending_packet_list)}Labeled packets successfully sent to the server.")
162
+
common.config_set('api_message', f"success| Labeled packets successfully sent to the server.\n{label_data}")
156
163
else:
157
164
logger.info(f"[Packets] {time.strftime('%Y-%m-%d %H:%M:%S')} - API Failed, packets NOT sent!.")
158
165
common.config_set('api_message', f"error|Failed to send labeled packets. Server status: {response.status_code}. {len(pending_packet_list)} Packets were not sent.")
# [Content truncated for clarity, assuming original code is here]
238
-
st.warning(
239
-
"As part of this research project, only the network activity of the device you select will be shared with NYU mLab, and only while you are labeling an activity. "
240
-
"By entering your Prolific ID and continuing, you agree to share this data for research and compensation. "
241
-
"**Please confirm your Prolific ID is correct to ensure you receive payment for your participation.**"
242
-
)
243
-
prolific_id=common.config_get("prolific_id", "")
244
-
ifst.button("Continue", help="Click to confirm you have read and agree to the above statement."):
help="Toggle ON if you need help with identifying devices and detecting anonymous devices and activities, but provided that you are okay with IoT Inspector sharing anonymous data with New York University researchers.",
# help="Toggle ON if you need help with identifying devices and detecting anonymous devices and activities, but provided that you are okay with IoT Inspector sharing anonymous data with New York University researchers.",
0 commit comments