@@ -2424,7 +2424,7 @@ bool Wippersnapper::generateWSTopics() {
24242424
24252425 // /display topic //
24262426
2427- // Pre-determine topic size
2427+ // Pre-determine topic size
24282428 topicLen = strlen (WS._config .aio_user ) + strlen (" /" ) + strlen (_device_uid) +
24292429 strlen (" /wprsnpr/" ) + strlen (TOPIC_SIGNALS) + strlen (" broker" ) +
24302430 strlen (TOPIC_DISPLAY) + 1 ;
@@ -2942,6 +2942,26 @@ void Wippersnapper::connect() {
29422942 haltError (" Unable to allocate space for MQTT error topics" );
29432943 }
29442944
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+
29452965 // Connect to Network
29462966 WS_DEBUG_PRINTLN (" Running Network FSM..." );
29472967 // Run the network fsm
@@ -2994,13 +3014,6 @@ void Wippersnapper::connect() {
29943014 statusLEDFade (GREEN, 3 );
29953015 WS_DEBUG_PRINTLN (
29963016 " 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 );
30043017}
30053018
30063019/* *************************************************************************/
0 commit comments