Hey Bernd,
habe das mal so probiert, geht aber auch nicht:
if after(prowlStart1 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart1 then prowlConnectStatus1 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus1 == 0,1u64) and prowlStart1 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info1$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString);
prowlCnt1 = prowlCnt1 + 1u08;
} endif
if after(prowlConnectStatus1 == 0,2500u64) then {
prowlStart1 = AUS;
prowlCloseStatus1 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart1 == EIN, 10000u64) then prowlStart1 = AUS; ProwlIP = 0u32 endif
if after(prowlStart2 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart2 then prowlConnectStatus2 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus2 == 0,1u64) and prowlStart2 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info2$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString,0x0A,0x0D);
prowlCnt2 = prowlCnt2 + 1u08;
} endif
if after(prowlConnectStatus2 == 0,2500u64) then {
prowlStart2 = AUS;
prowlCloseStatus2 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart2 == EIN, 10000u64) then prowlStart2 = AUS; ProwlIP = 0u32 endif
if after(prowlStart3 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart3 then prowlConnectStatus3 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus3 == 0,1u64) and prowlStart3 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info3$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString,0x0A,0x0D,0x 0A,0x0D);
prowlCnt3 = prowlCnt3 + 1u08;
} endif
if after(prowlConnectStatus3 == 0,2500u64) then {
prowlStart3 = AUS;
prowlCloseStatus3 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart3 == EIN, 10000u64) then prowlStart3 = AUS; ProwlIP = 0u32 endif
prowlConnectStatus und prowlCloseStatus haben jeweils die Werte null. Das bedeutet, dass eine gültige Verdingung aufgebaut wurde und dass diese auch wieder ordnungsgemäß geschlossen wurde.
Dann kann ja eigentlich nur noch der String, der gesendet wird, falsch sein.
Sind die Endekennungen vielleicht falsch? Den Key habe ich nun schon mehrmals überprüft. Diesen in Firefox kopiert und die Push-Nachricht ist da.
Gruß
Markus
habe das mal so probiert, geht aber auch nicht:
if after(prowlStart1 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart1 then prowlConnectStatus1 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus1 == 0,1u64) and prowlStart1 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info1$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString);
prowlCnt1 = prowlCnt1 + 1u08;
} endif
if after(prowlConnectStatus1 == 0,2500u64) then {
prowlStart1 = AUS;
prowlCloseStatus1 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart1 == EIN, 10000u64) then prowlStart1 = AUS; ProwlIP = 0u32 endif
if after(prowlStart2 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart2 then prowlConnectStatus2 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus2 == 0,1u64) and prowlStart2 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info2$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString,0x0A,0x0D);
prowlCnt2 = prowlCnt2 + 1u08;
} endif
if after(prowlConnectStatus2 == 0,2500u64) then {
prowlStart2 = AUS;
prowlCloseStatus2 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart2 == EIN, 10000u64) then prowlStart2 = AUS; ProwlIP = 0u32 endif
if after(prowlStart3 == EIN,1000u64) then ProwlIP = resolve($http://prowl.weks.net$) endif
if after(ProwlIP > 0u32,1500u64) and prowlStart3 then prowlConnectStatus3 = connecttcp(ProwlPort,ProwlIP) endif
if after(prowlConnectStatus3 == 0,1u64) and prowlStart3 then {
ProwlString = $GET $ + $/publicapi/add?apikey=$ + ProwlKey + $&priority=2&application=$ + ProwlBetreff + $&event=Info3$ + $&description=$ + ProwlText + $ HTTP/1.1$;
sendtcp(ProwlPort,ProwlIP,ProwlString,0x0A,0x0D,0x 0A,0x0D);
prowlCnt3 = prowlCnt3 + 1u08;
} endif
if after(prowlConnectStatus3 == 0,2500u64) then {
prowlStart3 = AUS;
prowlCloseStatus3 = closetcp(ProwlPort,ProwlIP)
} endif
if after(prowlStart3 == EIN, 10000u64) then prowlStart3 = AUS; ProwlIP = 0u32 endif
prowlConnectStatus und prowlCloseStatus haben jeweils die Werte null. Das bedeutet, dass eine gültige Verdingung aufgebaut wurde und dass diese auch wieder ordnungsgemäß geschlossen wurde.
Dann kann ja eigentlich nur noch der String, der gesendet wird, falsch sein.
Sind die Endekennungen vielleicht falsch? Den Key habe ich nun schon mehrmals überprüft. Diesen in Firefox kopiert und die Push-Nachricht ist da.
Gruß
Markus
Kommentar