I am having another issue now that I have added a second event to my I am finding that some of my modules aren't sending messages but are still sending beacons. I changed one string value between modules and some are working some are not. They all sent out one message after programming. I also attempted to connect to one module in mcSudio and had it connect to a different one about 5 different times. This only started after I had 6 instead of 3 talking. I had to restart mcStudio a few times to get the connection to work. I will paste my messy code below so you can see it.
Class Temperature
Const area As String = "Outside"
Shared Event GetTemp() RaiseEvent Every 2 Minutes
Dim TempC As Float = TempSensor.GetTemp
//Dim TempF As Float = TempSensor.ToFarenheit(TempC)
Dim payload As ListOfByte = New ListOfByte
Dim payString As String = ""
Dim decpos As Integer
Dim topic As String
topic = "MC/TempC/" + area
//TempC = (TempC * 10).ToInteger() / 10
payString = TempC.ToString
decpos = payString.IndexOf(46, 0)
payString = payString.SubString(0, (decpos + 2))
payload.Add(payString)
Lplan.Publish(topic, payload)
End Event
Shared Event CheckVoltage() RaiseEvent Every 6 Hours
Dim BattVolt As Short = Device.BatteryVoltage
Dim voltpayload As ListOfByte = New ListOfByte
Dim voltstring As String
Dim topic As String
topic = "MC/Voltage/" + area
voltstring = BattVolt.ToString
voltpayload.Add(voltstring)
Lplan.Publish(topic, voltpayload)
End Event
End Class