@@ -2424,7 +2424,7 @@ bool Wippersnapper::generateWSTopics() {
2424
2424
2425
2425
// /display topic //
2426
2426
2427
- // Pre-determine topic size
2427
+ // Pre-determine topic size
2428
2428
topicLen = strlen (WS._config .aio_user ) + strlen (" /" ) + strlen (_device_uid) +
2429
2429
strlen (" /wprsnpr/" ) + strlen (TOPIC_SIGNALS) + strlen (" broker" ) +
2430
2430
strlen (TOPIC_DISPLAY) + 1 ;
@@ -2942,6 +2942,26 @@ void Wippersnapper::connect() {
2942
2942
haltError (" Unable to allocate space for MQTT error topics" );
2943
2943
}
2944
2944
2945
+ // TODO: We are debugging the "Failed to subscribe" issue here prior to
2946
+ // runNetFSM Print out all topics generated by generateWSTopics()
2947
+ WS_DEBUG_PRINTLN (" MQTT Topics:" );
2948
+ WS_DEBUG_PRINT (" Device UID: " );
2949
+ WS_DEBUG_PRINTLN (_device_uid);
2950
+ // Broker topics only
2951
+ WS_DEBUG_PRINT (" Broker-to-Device DS18x20 Topic: " );
2952
+ WS_DEBUG_PRINTLN (WS._topic_signal_ds18_device );
2953
+ WS_DEBUG_PRINT (" Broker-to-Device Servo Topic: " );
2954
+ WS_DEBUG_PRINTLN (WS._topic_signal_servo_device );
2955
+ WS_DEBUG_PRINT (" Broker-to-Device PWM Topic: " );
2956
+ WS_DEBUG_PRINTLN (WS._topic_signal_pwm_device );
2957
+ WS_DEBUG_PRINT (" Broker-to-Device Pixels Topic: " );
2958
+ WS_DEBUG_PRINTLN (WS._topic_signal_pixels_device );
2959
+ WS_DEBUG_PRINT (" Broker-to-Device UART Topic: " );
2960
+ WS_DEBUG_PRINTLN (WS._topic_signal_uart_device );
2961
+ WS_DEBUG_PRINT (" Broker-to-Device Display Topic: " );
2962
+ WS_DEBUG_PRINTLN (WS._topic_signal_display_device );
2963
+ delay (500 );
2964
+
2945
2965
// Connect to Network
2946
2966
WS_DEBUG_PRINTLN (" Running Network FSM..." );
2947
2967
// Run the network fsm
@@ -2994,13 +3014,6 @@ void Wippersnapper::connect() {
2994
3014
statusLEDFade (GREEN, 3 );
2995
3015
WS_DEBUG_PRINTLN (
2996
3016
" Registration and configuration complete!\n Running application..." );
2997
-
2998
- // Print out display topics
2999
- WS_DEBUG_PRINTLN (" Device-to-Broker DISPLAY topic: " );
3000
- WS_DEBUG_PRINTLN (WS._topic_signal_display_device );
3001
- WS_DEBUG_PRINTLN (" Broker-to-Device DISPLAY topic: " );
3002
- WS_DEBUG_PRINTLN (WS._topic_signal_display_brkr );
3003
- delay (500 );
3004
3017
}
3005
3018
3006
3019
/* *************************************************************************/
0 commit comments