Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Develo
@devyte
I'm still around
den har
@denman0000_gitlab
@devyte coolio
@devyte ..perhaps you could help with a few simple questions that are driving me loco
@devyte they aren't code but are design related
den har
@denman0000_gitlab
@devyte hehe or not :-)
Develo
@devyte
aight, as long as I'm around, shoot
Chris Dalby
@moose4621
@denman0000_gitlab You there mate?
Chris Dalby
@moose4621
@devyte Thanks for your help earlier today. I tried your first suggestion for the payload array casting and it works great. I was hoping you could tell me why console is now reporting to be 3 or 4 arrays being sent over websockets.
ArrayBuffer(4) {} [[Int8Array]] : Int8Array(4) [42, 0, 53, 0] [[Int16Array]] : Int16Array(2) [42, 53] [[Int32Array]] : Int32Array [3473450] [[Uint8Array]] : Uint8Array(4) [42, 0, 53, 0] byteLength : (...)
@devyte or is it the same array being read 4 different ways?
den har
@denman0000_gitlab
@moose4621 hello how are you ?
@moose4621 @devyte @ashthespy Hello there
Hello all actually :-)
anyone around ?
Chris Dalby
@moose4621
@denman0000_gitlab Howdy.
den har
@denman0000_gitlab
@moose4621 Howdy howdy ...How are you ? :-)
Chris Dalby
@moose4621
@denman0000_gitlab Great, and you?
den har
@denman0000_gitlab
@moose4621 glad you're well and I'm great too :-)
@moose4621 I think I found part of what I was looking for .. Its a very basic example but shows how to get the variables across
Chris Dalby
@moose4621
@denman0000_gitlab Awesome. That's got to make you feel better.
den har
@denman0000_gitlab
@moose4621 only things is it seems to print the output on the console a number of times .. can't seem to see why
@moose4621 ...LOL one would think , sadly the closer I seem to think I am the further away I seem to feel ..if that makes sense
@moose4621 I was thinking about all last night and looking at the original arduino code I have .. and hopefully have now broken down the steps,
Chris Dalby
@moose4621
@denman0000_gitlab Hmm, nothing jumps out at me yet.
den har
@denman0000_gitlab
@moose4621 ... The order is as follows :
1.read a file from spiffs to populate a table on Webpage as well as an array on the C++/arduino side.
  1. If a row is added grab the data from input fields and update the table .
  2. get that row info into variables and populate array
    (at same time write the array field to a file on spiffs) .
@moose4621 sorry steps are 1,2,3 lol something weird in formatting here
@moose4621 currently that code returns multiple entries in the serial console when you click save only once :-( see here :
Hours: 12
Minutes: 01
Seconds: 27
This is server arg: 12
Hours: 12
Minutes: 01
Seconds: 27
This is server arg: 12
Hours: 12
Minutes: 01
Seconds: 27
This is server arg: 12
Hours: 12
Minutes: 01
Seconds: 27
Chris Dalby
@moose4621
@denman0000_gitlab Nope, still cannot see where the problem is. Still looking.
den har
@denman0000_gitlab
@moose4621 maybe its here : $.get('/save?hh=' + hh + '&mm=' + mm + '&ss=' + ss, function(data){\
I cant quite get whats happening there
Develo
@devyte
@moose4621 sorry, I'm not much of a js guy, and for my simple needs I use basic js, not jquery or whatever. I need stand-alone apps that don't depend on externally hosted libs
If you have C/C++ questions, I can try to answer
den har
@denman0000_gitlab
@devyte Ty man much appreciated
Hi all anyone here ?
Develo
@devyte
still around
den har
@denman0000_gitlab
@devyte cool how you doing ?
Develo
@devyte
about to start another round of repo issue cleanup
how about you?
den har
@denman0000_gitlab
You're keeing busy hey :-)
I'm still trying to figure out how to put all the pieces together but starting to confuse myself
one big burning questions I have is how to make a file on spiffs available to write to from my webpage
Develo
@devyte
look at FSBrowser example
den har
@denman0000_gitlab
typically when one works with a table on a web page .. you can add and remove elements
that interaction is done with a database
OR local file ....
or a file on a local or remote server (which serves the file )
Develo
@devyte
I use something based on FSBrowserNG tied into the async webserver
den har
@denman0000_gitlab
I havelooked at the FSBrowser example.. which makes perfect sense and I have it working and can add, append to a file. ..... but how to I present that file to the client
for example : url htttp://mydatafile.txt
Develo
@devyte
there's an edit interface in there somewhere, which is essentially a text editor