fix for custom mqtt server
This commit is contained in:
		
							parent
							
								
									1963ca3051
								
							
						
					
					
						commit
						269afa4b76
					
				| @ -49,9 +49,6 @@ Blockly.Blocks["sensebox_mqtt_setup"] = { | ||||
|                 break; | ||||
| 
 | ||||
|             case "custom": | ||||
|                 this.getField('server').setValue("server"); | ||||
|                 this.getField('port').setValue("port"); | ||||
|                 this.getField('passwordmsg').setValue(Blockly.Msg.senseBox_mqtt_password); | ||||
|                 break; | ||||
|             default: | ||||
| 
 | ||||
| @ -86,3 +83,4 @@ Blockly.Blocks["sensebox_mqtt_subscribe"] = { | ||||
|         this.setOutput(true, null); | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
|  | ||||
| @ -38,7 +38,7 @@ Blockly.Arduino.sensebox_mqtt_publish = function (block) { | ||||
|             Blockly.Arduino.definitions_['mqtt_' + feed_client + ''] = 'Adafruit_MQTT_Publish ' + feed_client + ' = Adafruit_MQTT_Publish(&mqtt, "/"USERNAME"/' + feedname + '");' | ||||
|             break; | ||||
|         case 'custom': | ||||
|             Blockly.Arduino.definitions_['mqtt_' + feed_client + ''] = 'Adafruit_MQTT_Publish ' + feed_client + ' = Adafruit_MQTT_Publish(&mqtt, ' + feedname + ');' | ||||
|             Blockly.Arduino.definitions_['mqtt_' + feed_client + ''] = 'Adafruit_MQTT_Publish ' + feed_client + ' = Adafruit_MQTT_Publish(&mqtt, "' + feedname + '");' | ||||
|             break; | ||||
|         default: | ||||
|             break; | ||||
| @ -77,4 +77,5 @@ Blockly.Arduino.sensebox_mqtt_subscribe = function (block) { | ||||
|     Blockly.Arduino.loopCodeOnce_['mqtt_processPackages'] = 'mqtt.processPackets(10);'; | ||||
|     var code = ''; | ||||
|     return code; | ||||
| }; | ||||
| }; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user