I have one more hour to troubleshoot. You are not consistently receiving a return packet. The -1 means that the request timeout. Have you tried to increase the timeout in Socket.Spin?
TIMEOUT = 1000 ' Number of loops to execute before issuing a timeout
INIT_DELAY = 1 ' Amount of time (ms) to wait in each timeout loop
TRANS_DELAY = 0 ' Milliseconds to wait between receiving data blocks
Mikeeeeeee. It works like a charm now .
Yes I am realy happy , I havent implemented it in the full code yet but the dhcp demo gets the ip set every time .
The magic change was the TIMEOUT value . You told me before to play with the INIT_DELAY , with that one i have tryied allot of combinations , non workd ,.
i have increased the timeout to 1500 and directly it works all the time ,
Thanks again mike , without you troubleshooting I would have never het this whole thing working , :P
about an old question asked
at the parseresourse .
I used the below code to get something done with a post from my brouwser
the button with the inputfield is now posting ¨setpointvar + (INPUT)¨ to the wiznet .
detect the setpointvar and then extract the input (e.g. 53 ) to use as
Setpoint:= 53
Your the best help Mike ,
I much apriciate
Someday ill give something nice back to you , currently not in the best position , but time wil tell . your the best
Mike, the implementation to make it work in the complete program isnt working like i expected . better say still not working , The demo works , not the complet one trying to figure out why
Gateway is 192.168.2.254 ,, dns i thout the same
why you need them 4 ,
the program needs to find that out for it self right ??, because it must be able to work in another network with different gateway and dns,. ,or do you ask for a different reason
o router dns is , 195.121.1.34/195.121.1.66/0.0.0 , gateway i cant find . only where you can set it , there its also 192.168.2.254
why you need them 4 ,
the program needs to find that out for it self right ??, because it must be able to work in another network with different gateway and dns,. ,or do you ask for a different reason
Because I'm trying to help you! The Offer packet contains zeros where I expect data.
I expect to see DNS servers outside your local network. Plus I see that a domain named lan. I'm not sure sure if the domain name has any meaning yet. I have some research to do and I'll get back with you.
I expect to see DNS servers outside your local network. Plus I see that a domain named lan. I'm not sure sure if the domain name has any meaning yet. I have some research to do and I'll get back with you.
About why I asked why u need the values , I meant to get to know what you are looking for in the code solving the problem anyway
the domain name lan doesn't say nothing to me , not sure where that came from . the other settings look to be correct for what my modems sends out
its getting kinda late here too so i'm gonna take a nap soon and continue tomorrow , I still didn't have any luck to get the full code working , even though the DHCP demo does work.
Networking is not my forte. I researched heavily to get to this point. I realize there is a problem but I can't reproduce the the exact problem. Therefore, I need information to build a troubleshooting plan.
Please describe your network configuration in as much detail as you can.
Networking is not my forte. I researched heavily to get to this point. I realize there is a problem but I can't reproduce the the exact problem. Therefore, I need information to build a troubleshooting plan.
Please describe your network configuration in as much detail as you can.
Mike dont know what happend but now im not able to get them to work at all , verry strange , thinking the Simpleide program loads the bad data orso , dont understand why yesterday it work like a charm the dhcp demo and now it doensnt doe anything
anyway
my local network
I have a adsl modem that connects me to the internet , this modem is also my main modem ,so from this box . is the starting point
my network parametes are like in the photo below
In this network I have a pc with ubuntu with static ip 192.168.2.151. . this is where I have my apache server running from , serving e.g the stylesheets for the wiznet .
besides that these is a blackberry phone and some other dhcp assign computers. (neighbours)
don,t think they have anything to do with it .
In the first picture I can see that the modem still rememberd the propnet . even knowing the controller was not on. The modem remembers it orso when its not there.
maybe thats causing the modem not to transmit all the neccecary info
like you said , I am also deffinitly not strong in this networking chapter. its also heavy reading and tryingout and more reading and asking :P ,
thats why i appriciate your work allot.
got the feeling you can,t take a brake without it working . or you will keep thinking about how to fix it anyway if your doing something else , This is definitly what I feel when I am trying to get this to work
DHCP assignment has a lease period. It is ok to see the PROPNET in the DHCP client table.
I'm still not sure what the problem is and why it works sometimes and not others. Check for an IP conflict or release the DHCP lease for the PROPNET.
i guess it is ok to have the router configured as the DNS server. I tied it and works in my environment.
Do you have a router connected to the modem too?
Mike dont know what happend but now im not able to get them to work at all , verry strange , thinking the Simpleide program loads the bad data orso , dont understand why yesterday it work like a charm the dhcp demo and now it doensnt doe anything
anyway
Wht does this mean? Can you be more specific than It does not work?
I was expecting the gateway IP to always be in the server DHCP field in the Offer packet. That's not always the case. The logic will use the router IP as the gateway if the server IP is empty in the Offer packet.
I was expecting the gateway IP to always be in the server DHCP field in the Offer packet. That's not always the case. The logic will use the router IP as the gateway if the server IP is empty in the Offer packet.
Hi . I was just about to answer when i saw the new code . went to try it out . and the result is good . The dhcp demo works every time all time , with both modems , on the first try.
about my network stil ,dont know if you call it a router , but the pc running ubuntu with static ip gets its network connection that gets transferred thru the power socket at the modem side , and out again at the socket where the computer is , so there is some sort of small network to get the data across my power lines.
anyway.
the multisocket program still doesnt run good , this is how it looks right now , but i still get the error #1 with it , and the dhcp demo works fine , using same object files
I also renamed the files (w5200,socket,dhcp)adding a 3 to the end , to make sure the simpleide program was using the right one
OBJ
pst : "Parallax Serial Terminal"
wiz : "W52003.spin"
sock[SOCKETS] : "Socket3.spin"
sht : "Sensirion_full" { temp/lv sensor control object }
fp : "FloatString" { Math object }
f : "Float32" { Math object }
i2cObject : "basic_i2c_driver" {Eprom object}
shift : "Simple_74HC595" { lcd control object }
rom : "I2C_ROMEngine" { Eeprom Backup object }
led : "led_pwm"
eeprom : "Propeller Eeprom"
dhcp : "Dhcp3"
Let me know what im doing wrong with the dhcpmultiscket why its not working .
UPDATE Correction, the demo doesnt work every time still. Tying to compare a few and see what differance i can find
looks like when i connect it to the linksys modem that i have ( loose modem -only prop connected to it via wire ) ip server s 10.0.0.1 . anyway . it looks like it gets assing every time , but with the otrher modem i get the error still .
correction . I did a modem reset and now its seem to connect also every time .
the dhcp demo then . the dhcp followd by the multisocket still does the same
A -1 return code means the DHCP object timed out waiting for a response.
Try increasing the timeout period.
the error it 1 not -1
its like increasing the timeout of the init_delay only increases the time that it responds with the error.
the multi socket works most of the time with a timeout of 2000 and an init_delay of 2 . but still sometimes it doesn't get the ip assigned
and with the demo the both work , dont know why it doesnt with the other program
Mike , is there a differance in the sequence done in the dhcp demo with the one I use in the multisocket(.wizdoDHCP)
strangly , the demo works fine , but the otrher one not, there must be something not updated orso ?
Igor, leave INIT_DELAY at 1 and only change TIMEOUT.
the error it 1 not -1
The DHCP object error 1 can only come from result of a -1 being returned from Socket.Available. A -1 from Socket.Available means the socket timed out. An error code 1 from the DHCP objects means the timeout happened waiting for the Offer packet.
The fact that DHCP works 50% of time means - it works half the time, which is good. The other half, it times out - not good. So the question is why is the Offer timing out?
The TIMEOUT constant dictates the number of to loops run. INIT_DELAY is the amount of time to delay within the loop. Do this, set INIT_DELAY to 1 which is 1ms. Set TIMEOUT to 10000. This creates a 10 second maximum timeout.
Do this, set INIT_DELAY to 1 which is 1ms. Set TIMEOUT to 10000. This creates a 10 second maximum timeout.
Mike I have tried this before , did it now again , and that doesn't solve it , it looks like it only increases the time it takes to get the respond back to get the error #1 printed in the serial terminal
did a little bit of wiresharking on it . an i saw it
When I get a successful ip assigned , I can see the hole process of doing the discovery , getting the request etc etc. see in the picture . working nice
anyway
when the dhcp fails , There is never any action taking place in the wireshark , *** iff the discovery request never gets send out orso because wireshark is not seeing it .
any ideas ?
and thanks for the short wiki explination about the socket timouts
Update DhcpDemo.spin. It's not going to solve the problem but might shed some light. Did you have any luck viewing port 67 and 68 packets in WireShark?
He Mike, I had a awful headache last night so i went to sleep very early, not making any progress , anyway
I took a fresh copy of the dhcp demo , loaded it . wireshark ready ,
wasn,t able to get it to fillter and show me only those packets , but I can see them , and everything else
anyway , when there is a successful dhcp assignment my log looks like this
One thing that i find odd is that the gateway is set to 0.0.0.0 , isn it supose to be 192.168.2.254?
for the rest the succesfull dhcp assinments looks fine
at the wireshark side i can see the discovery goig out and and getting assinnd .
Thats the time when it all looks to go fine .
at the other hand , when it fail to connect , I get a verry different log. looking like below
at the start , it waits when sending the first discovery , after a sec when it recives the first error , it keeps sending out the discovery after echother whitout stopping. Never getting the ip assing in 30 tryies(only 9 DHCP retries shown below)
At the wireshark side , i can see that a the discovery is beeing sent out an offer comming back , but a discovery beeing sent out again and continuing
at line 7 is the fist, when i turn the prop on
at line 19-24 is my pc with static ip talking to the modem, so thats not part of it .
anyway . looks like the prop never gets, or accepts the offer that gets sent from the modem . or somthing in that range because the prop continues to send them out
When its a succesfull . (below)
1 Discovery gets sent out , (line 1)
2 Modem sends offer (line 2)
3 Wiznet asks hoe has the gateway , and thell I want 192.168.2.2 . ( line 3)
4 after that modem accepts ( line 4)
Maybe Im wrong about the explination , but thats what i think is the simple explination of the procces
. so I assume the wiznet nevver gets to step 3. and keeps repeating the first.
so its either not getting it , or not listening at all for it
hope this is helpfull for you mike , looking forward to getting it working 100% of the time
Update : i was looking closer and i see that , the first when it fails , the discovery gets send (line 7) out after that the (ARP) gets send ( line8) . it waits for the offer but never gets it from the modem , ( don,t know why ) anyway . after it doesnt get the offer the first time it sends back out an second request and continues to do that. BUT when the second request gets send out , the modem sends an offer out , but the prop keeps discovering in place of taking the offer ,
is it because the prop is not doing the ARP after each new discovery gets send out for it to accept the offer .; or is it just not looking for the offer ,
So the modem does not react everytime on the first time , But when it does react sending the offer , the prop never takes it
the gateway issue is fix yes
but further the same , looks like , when the prop sends out its second discovery because it didn't get any reply the first time .
when it send the second one , it does get a reply ,. but the prop never takes it . or thats what it looks like in wireshark
I have attached the logs wireshark log.zip
Mike about the login form , I was implementing it in my multisocetserver that i use for the html5 graphs. anyway
the name gets incoded at the start of the code , just before we begin setting the ip andso.
pst.Start(115_200)
pause(1000)
'Encode the username and password used in basic authentication
repeat t1 from 0 to @_null - @user_pw - 1
b64.out(user_pw[t1])
t1 := b64.end
bytemove(@base64auth, t1, strsize(t1))
pst.str(@base64auth)
pst.char(CR)
wiz.Init
wiz.SetIp(192, 168, 2, 200)
. i figured out that the token size header doesn't need to be used because its already being tokenized in the parseresourse
but at implementing the rest of the code for it to work has been a big problem .
have moved the code all over the place , and but unable to let it work correctly
so far i have tried to put in in the parseresource letting it look for an extra if statement before it sends out
if(IsAuthenticated) and (strcomp(resPtr[j], string("HTTP")))
return @index
and about 10 more combinations of the method being asked there , all resulting in or the page never loading , or it will keep on asking for the password,.
wanna help me get it working with the graph page , keywords : Multi Socket -Authorization- ongoing xml request. buttons to press
. i figured out that the token size header doesn't need to be used because its already being tokenized in the parseresourse
but at implementing the rest of the code for it to work has been a big problem .
You don't need to use parseresourse anymore. I originally coded parseresourse as a very basic URL parser since you had two different requests. It was never intended for production just something to get you started.
I built TcpSocketBasicAuthenticationServerDemo.spin specifically for basic authentication. The top level object contains a reference HttpHeader.spin. HttpHeader.spin is a comprehensive header tokenizer that exposes the header name values through public method. Please take a look at the demo.
Is it as simple as reading the base-64 authorization header and comparing it to the the base-64 encode username and password created during the initialization process.
What values do you have for TIMEOUT, INIT_DELAY, and TRANS_DELAY in the socket object?
TIMEOUT = ?' Number of loops to execute before issuing a timeout
INIT_DELAY = ? ' Amount of time (ms) to wait in each timeout loop
TRANS_DELAY = ? ' Milliseconds to wait between receiving data blocks
I left the timeout at 10000 like you put it ,
the init delay = 1
and trans_delay = 0
just like in the fesh copy of this morning
im going to dig deepper in the httpheader file , but
you say parseresourse is not needed anymore , how do i get the different xlm posted then ?
where do i put the methods that run when i push my buttons
im going to dig deepper in the httpheader file , but
you say parseresourse is not needed anymore , how do i get the different xlm posted then ?
where do i put the methods that run when i push my buttons
Change your logic to use the HttpHeader Object.
PUB Get(key) - Return GET (URL) parameters by name
PUB Post(key) - Return POST (form) parameters by name
PUB Header(key) - Return header parameter by name
PUB Request(key) - Return GET or POST paramters by name
PUB UrlContains(value) - Does the URL contain the search string (value)
I update Socket and the DhcpDemo. Please give it a try.
I simulated your symptoms by unplugging the network cable on the initial request then plugging the cable in again. The updated logic can handle the connection issue and recover.
Mike, I dont know whats happening , but for some reason my hole computer is not functioning anymore when i load the propeller gcc . verry strang
tried reinstalling the files ,. nothing . think i wil reinstall the system soon , tyring to find out what it is
til then im sorry cant test the code , im asap on it :P
I have tested it 25+ times on both of my 2 lan network routers , and it gets the ip set immediately 100 % of the time.
I saw once that it didnt get it right ahead , but at the second discovery packet sent out , accompanied by the ACK ( this was not the case before ) it did get it . so it wil get the ip set on both networks
Nice work mike , I think now the DHCP files is bugless 4 further implementation .
still trying to figure out what happend to my simpleide I used an old computer to test . but this is not the best pc so im trying to fix that fast
Comments
Yes I am realy happy , I havent implemented it in the full code yet but the dhcp demo gets the ip set every time .
The magic change was the TIMEOUT value . You told me before to play with the INIT_DELAY , with that one i have tryied allot of combinations , non workd ,.
i have increased the timeout to 1500 and directly it works all the time ,
Thanks again mike , without you troubleshooting I would have never het this whole thing working , :P
about an old question asked
at the parseresourse .
I used the below code to get something done with a post from my brouwser
But this just inceases the value with one the button with the inputfield is now posting ¨setpointvar + (INPUT)¨ to the wiznet .
detect the setpointvar and then extract the input (e.g. 53 ) to use as
Setpoint:= 53
Your the best help Mike ,
I much apriciate
Someday ill give something nice back to you , currently not in the best position , but time wil tell . your the best
Gateway is 192.168.2.254 ,, dns i thout the same
why you need them 4 ,
the program needs to find that out for it self right ??, because it must be able to work in another network with different gateway and dns,. ,or do you ask for a different reason
o router dns is , 195.121.1.34/195.121.1.66/0.0.0 , gateway i cant find . only where you can set it , there its also 192.168.2.254
I expect to see DNS servers outside your local network. Plus I see that a domain named lan. I'm not sure sure if the domain name has any meaning yet. I have some research to do and I'll get back with you.
About why I asked why u need the values , I meant to get to know what you are looking for in the code solving the problem anyway
the domain name lan doesn't say nothing to me , not sure where that came from . the other settings look to be correct for what my modems sends out
its getting kinda late here too so i'm gonna take a nap soon and continue tomorrow , I still didn't have any luck to get the full code working , even though the DHCP demo does work.
http://www.networksorcery.com/enp/protocol/dhcp.htm
Second, why is DNS routed to your local network.
Networking is not my forte. I researched heavily to get to this point. I realize there is a problem but I can't reproduce the the exact problem. Therefore, I need information to build a troubleshooting plan.
Please describe your network configuration in as much detail as you can.
Mike dont know what happend but now im not able to get them to work at all , verry strange , thinking the Simpleide program loads the bad data orso , dont understand why yesterday it work like a charm the dhcp demo and now it doensnt doe anything
anyway
my local network
I have a adsl modem that connects me to the internet , this modem is also my main modem ,so from this box . is the starting point
my network parametes are like in the photo below
In this network I have a pc with ubuntu with static ip 192.168.2.151. . this is where I have my apache server running from , serving e.g the stylesheets for the wiznet .
besides that these is a blackberry phone and some other dhcp assign computers. (neighbours)
don,t think they have anything to do with it .
In the first picture I can see that the modem still rememberd the propnet . even knowing the controller was not on. The modem remembers it orso when its not there.
maybe thats causing the modem not to transmit all the neccecary info
like you said , I am also deffinitly not strong in this networking chapter. its also heavy reading and tryingout and more reading and asking :P ,
thats why i appriciate your work allot.
got the feeling you can,t take a brake without it working . or you will keep thinking about how to fix it anyway if your doing something else , This is definitly what I feel when I am trying to get this to work
Hope we find the problem, tel me know
I'm still not sure what the problem is and why it works sometimes and not others. Check for an IP conflict or release the DHCP lease for the PROPNET.
i guess it is ok to have the router configured as the DNS server. I tied it and works in my environment.
Do you have a router connected to the modem too?
Wht does this mean? Can you be more specific than It does not work?
Dhcp.spin
DhcpDemo.spin
TcpSocketClientDemoDhcpDns.spin
W5200.spin
I was expecting the gateway IP to always be in the server DHCP field in the Offer packet. That's not always the case. The logic will use the router IP as the gateway if the server IP is empty in the Offer packet.
Hi . I was just about to answer when i saw the new code . went to try it out . and the result is good . The dhcp demo works every time all time , with both modems , on the first try.
about my network stil ,dont know if you call it a router , but the pc running ubuntu with static ip gets its network connection that gets transferred thru the power socket at the modem side , and out again at the socket where the computer is , so there is some sort of small network to get the data across my power lines.
anyway.
the multisocket program still doesnt run good , this is how it looks right now , but i still get the error #1 with it , and the dhcp demo works fine , using same object files
I also renamed the files (w5200,socket,dhcp)adding a 3 to the end , to make sure the simpleide program was using the right one
Let me know what im doing wrong with the dhcpmultiscket why its not working .
UPDATE Correction, the demo doesnt work every time still. Tying to compare a few and see what differance i can find
looks like when i connect it to the linksys modem that i have ( loose modem -only prop connected to it via wire ) ip server s 10.0.0.1 . anyway . it looks like it gets assing every time , but with the otrher modem i get the error still .
correction . I did a modem reset and now its seem to connect also every time .
the dhcp demo then . the dhcp followd by the multisocket still does the same
Try increasing the timeout period.
the error it 1 not -1
its like increasing the timeout of the init_delay only increases the time that it responds with the error.
the multi socket works most of the time with a timeout of 2000 and an init_delay of 2 . but still sometimes it doesn't get the ip assigned
and with the demo the both work , dont know why it doesnt with the other program
Mike , is there a differance in the sequence done in the dhcp demo with the one I use in the multisocket(.wizdoDHCP)
strangly , the demo works fine , but the otrher one not, there must be something not updated orso ?
From 10 times , turing the propeller on , running the dhcp demo . recording the log and turning it off back
try 1 - bad
try2- bad
try3- bad
try4- Good
try5- Good
try6- Good
try7- Good
try8- BAD
try9- BAD
try10- Good
So about 50 % of the time it works , i have attached the log file with all the data . hope it is usefull
DHCP log.odt
The DHCP object error 1 can only come from result of a -1 being returned from Socket.Available. A -1 from Socket.Available means the socket timed out. An error code 1 from the DHCP objects means the timeout happened waiting for the Offer packet.
The fact that DHCP works 50% of time means - it works half the time, which is good. The other half, it times out - not good. So the question is why is the Offer timing out?
The TIMEOUT constant dictates the number of to loops run. INIT_DELAY is the amount of time to delay within the loop. Do this, set INIT_DELAY to 1 which is 1ms. Set TIMEOUT to 10000. This creates a 10 second maximum timeout.
Mike I have tried this before , did it now again , and that doesn't solve it , it looks like it only increases the time it takes to get the respond back to get the error #1 printed in the serial terminal
did a little bit of wiresharking on it . an i saw it
When I get a successful ip assigned , I can see the hole process of doing the discovery , getting the request etc etc. see in the picture . working nice
anyway
when the dhcp fails , There is never any action taking place in the wireshark , *** iff the discovery request never gets send out orso because wireshark is not seeing it .
any ideas ?
and thanks for the short wiki explination about the socket timouts
Use the following filter string in WireShark
When I get home from work, I'll write debug code to help troubleshoot but I think you are experiencing timeouts as shown in DHCP log.odt.
I took a fresh copy of the dhcp demo , loaded it . wireshark ready ,
wasn,t able to get it to fillter and show me only those packets , but I can see them , and everything else
anyway , when there is a successful dhcp assignment my log looks like this
One thing that i find odd is that the gateway is set to 0.0.0.0 , isn it supose to be 192.168.2.254?
for the rest the succesfull dhcp assinments looks fine
at the wireshark side i can see the discovery goig out and and getting assinnd .
Thats the time when it all looks to go fine .
at the other hand , when it fail to connect , I get a verry different log. looking like below
at the start , it waits when sending the first discovery , after a sec when it recives the first error , it keeps sending out the discovery after echother whitout stopping. Never getting the ip assing in 30 tryies(only 9 DHCP retries shown below)
At the wireshark side , i can see that a the discovery is beeing sent out an offer comming back , but a discovery beeing sent out again and continuing
at line 7 is the fist, when i turn the prop on
at line 19-24 is my pc with static ip talking to the modem, so thats not part of it .
anyway . looks like the prop never gets, or accepts the offer that gets sent from the modem . or somthing in that range
because the prop continues to send them out
When its a succesfull . (below)
1 Discovery gets sent out , (line 1)
2 Modem sends offer (line 2)
3 Wiznet asks hoe has the gateway , and thell I want 192.168.2.2 . ( line 3)
4 after that modem accepts ( line 4)
Maybe Im wrong about the explination , but thats what i think is the simple explination of the procces
. so I assume the wiznet nevver gets to step 3. and keeps repeating the first.
so its either not getting it , or not listening at all for it
hope this is helpfull for you mike , looking forward to getting it working 100% of the time
Update : i was looking closer and i see that , the first when it fails , the discovery gets send (line 7) out after that the (ARP) gets send ( line8) . it waits for the offer but never gets it from the modem , ( don,t know why ) anyway . after it doesnt get the offer the first time it sends back out an second request and continues to do that. BUT when the second request gets send out , the modem sends an offer out , but the prop keeps discovering in place of taking the offer ,
is it because the prop is not doing the ARP after each new discovery gets send out for it to accept the offer .; or is it just not looking for the offer ,
So the modem does not react everytime on the first time , But when it does react sending the offer , the prop never takes it
its what i think is happening
Let me know what you think about it
Get the latest files:
DhcpDemo.spin
Socket.spin
W5200.spin
This should fix the Gateway issue. If so I'll update the DHCP object.
Attached the WireShark log.
but further the same , looks like , when the prop sends out its second discovery because it didn't get any reply the first time .
when it send the second one , it does get a reply ,. but the prop never takes it . or thats what it looks like in wireshark
I have attached the logs
wireshark log.zip
let me know
the name gets incoded at the start of the code , just before we begin setting the ip andso. . i figured out that the token size header doesn't need to be used because its already being tokenized in the parseresourse
but at implementing the rest of the code for it to work has been a big problem .
have moved the code all over the place , and but unable to let it work correctly
so far i have tried to put in in the parseresource letting it look for an extra if statement before it sends out and about 10 more combinations of the method being asked there , all resulting in or the page never loading , or it will keep on asking for the password,.
wanna help me get it working with the graph page , keywords : Multi Socket -Authorization- ongoing xml request. buttons to press
You don't need to use parseresourse anymore. I originally coded parseresourse as a very basic URL parser since you had two different requests. It was never intended for production just something to get you started.
I built TcpSocketBasicAuthenticationServerDemo.spin specifically for basic authentication. The top level object contains a reference HttpHeader.spin. HttpHeader.spin is a comprehensive header tokenizer that exposes the header name values through public method. Please take a look at the demo.
Is it as simple as reading the base-64 authorization header and comparing it to the the base-64 encode username and password created during the initialization process.
Does the demo work for ya?
If I get time I'll look at incorporating authentication in HtmlGraph.spin.
I left the timeout at 10000 like you put it ,
the init delay = 1
and trans_delay = 0
just like in the fesh copy of this morning
im going to dig deepper in the httpheader file , but
you say parseresourse is not needed anymore , how do i get the different xlm posted then ?
where do i put the methods that run when i push my buttons
Change your logic to use the HttpHeader Object.
I update Socket and the DhcpDemo. Please give it a try.
I simulated your symptoms by unplugging the network cable on the initial request then plugging the cable in again. The updated logic can handle the connection issue and recover.
tried reinstalling the files ,. nothing . think i wil reinstall the system soon , tyring to find out what it is
til then im sorry cant test the code , im asap on it :P
any ideas ?
I have tested it 25+ times on both of my 2 lan network routers , and it gets the ip set immediately 100 % of the time.
I saw once that it didnt get it right ahead , but at the second discovery packet sent out , accompanied by the ACK ( this was not the case before ) it did get it . so it wil get the ip set on both networks
Nice work mike , I think now the DHCP files is bugless 4 further implementation .
still trying to figure out what happend to my simpleide I used an old computer to test . but this is not the best pc so im trying to fix that fast